mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 15:21:41 +00:00
cleanup: delete old files and don't use SanitizePath where it's not needed.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1416 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
38708f2976
commit
e7dacb5655
5 changed files with 2 additions and 485 deletions
|
@ -78,7 +78,7 @@ bool Delete(const char *filename)
|
|||
if (IsDirectory(filename))
|
||||
return false;
|
||||
#ifdef _WIN32
|
||||
DeleteFile(SanitizePath(filename).c_str());
|
||||
DeleteFile(filename);
|
||||
#else
|
||||
unlink(filename);
|
||||
#endif
|
||||
|
@ -222,7 +222,7 @@ bool DeleteDir(const char *filename)
|
|||
|
||||
bool Rename(const char *srcFilename, const char *destFilename)
|
||||
{
|
||||
return (rename(SanitizePath(srcFilename).c_str(), SanitizePath(destFilename).c_str()) == 0);
|
||||
return (rename(srcFilename, destFilename) == 0);
|
||||
}
|
||||
|
||||
bool Copy(const char *srcFilename, const char *destFilename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue