mirror of
https://github.com/decompals/wibo.git
synced 2025-12-16 08:27:07 +00:00
Various fixes for mwcc/mwld (#32)
* Override GetFileAttributesA for MWCC license.dat * Add WIN_FUNC to FileTimeToLocalFileTime * Use callee_pop_aggregate_return(0) * Lexically normalize paths
This commit is contained in:
@@ -22,7 +22,7 @@ namespace files {
|
||||
|
||||
// Return as-is if it exists, else traverse the filesystem looking for
|
||||
// a path that matches case insensitively
|
||||
std::filesystem::path path = std::filesystem::path(str);
|
||||
std::filesystem::path path = std::filesystem::path(str).lexically_normal();
|
||||
if (std::filesystem::exists(path)) {
|
||||
return path;
|
||||
}
|
||||
@@ -58,7 +58,7 @@ namespace files {
|
||||
}
|
||||
|
||||
std::string pathToWindows(const std::filesystem::path &path) {
|
||||
std::string str = path;
|
||||
std::string str = path.lexically_normal();
|
||||
|
||||
if (path.is_absolute()) {
|
||||
str.insert(0, "Z:");
|
||||
|
||||
Reference in New Issue
Block a user