mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Fixed error of pull request #714
This commit is contained in:
parent
e3d38f704f
commit
90d0e69a56
1 changed files with 3 additions and 0 deletions
|
@ -125,13 +125,16 @@ bool rRemoveFile(const std::string &file)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if (!DeleteFile(ConvertUTF8ToWString(file).c_str())) {
|
if (!DeleteFile(ConvertUTF8ToWString(file).c_str())) {
|
||||||
LOG_ERROR(GENERAL, "Error deleting %s: %i", file.c_str(), GetLastError());
|
LOG_ERROR(GENERAL, "Error deleting %s: %i", file.c_str(), GetLastError());
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int err = unlink(file.c_str());
|
int err = unlink(file.c_str());
|
||||||
if (err) {
|
if (err) {
|
||||||
LOG_ERROR(GENERAL, "Error unlinking %s: %i", file.c_str(), err);
|
LOG_ERROR(GENERAL, "Error unlinking %s: %i", file.c_str(), err);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFile::OpenMode convertOpenMode(rFile::OpenMode open)
|
wxFile::OpenMode convertOpenMode(rFile::OpenMode open)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue