mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 07:35:38 +00:00
Fixed an issue where FileSystemUtil::renameFile() did sometimes not provide a return value for if it actually succeeded or not
This commit is contained in:
parent
cc9684ac21
commit
b30f8a48d3
|
@ -739,13 +739,11 @@ namespace Utils
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_WIN64)
|
#if defined(_WIN64)
|
||||||
_wrename(Utils::String::stringToWideString(sourcePath).c_str(),
|
return _wrename(Utils::String::stringToWideString(sourcePath).c_str(),
|
||||||
Utils::String::stringToWideString(destinationPath).c_str());
|
Utils::String::stringToWideString(destinationPath).c_str());
|
||||||
#else
|
#else
|
||||||
std::rename(sourcePath.c_str(), destinationPath.c_str());
|
return std::rename(sourcePath.c_str(), destinationPath.c_str());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool removeFile(const std::string& path)
|
bool removeFile(const std::string& path)
|
||||||
|
|
Loading…
Reference in a new issue