diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2008-12-07 00:12:15 +0000 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2008-12-07 00:12:15 +0000 |
| commit | e7dacb5655b8f987e25f5f57267d767b6741eed4 (patch) | |
| tree | a69073ccb8d7304958c483214b737623e8c9c363 /Source/Core/Common/Src/FileUtil.cpp | |
| parent | 38708f2976e53a651b811b0c221d0d27e73c506a (diff) | |
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
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/FileUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp index 1be34355df..7fd81d3ae0 100644 --- a/Source/Core/Common/Src/FileUtil.cpp +++ b/Source/Core/Common/Src/FileUtil.cpp @@ -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)
|
