diff options
| author | fires.gc <fires.gc@gmail.com> | 2008-11-06 22:01:09 +0000 |
|---|---|---|
| committer | fires.gc <fires.gc@gmail.com> | 2008-11-06 22:01:09 +0000 |
| commit | 03d54436363ad920f45c9f990150f566f04788d5 (patch) | |
| tree | 4bc90d6d2797fdfef236ffec8930cdcafb3092a5 /Source/Core/Common/Src/FileUtil.cpp | |
| parent | 2e4cde02fd88b432d760ea2796fe345ecc28e1c3 (diff) | |
it seems that "rename" overwrites files...
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1086 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/FileUtil.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp index 7660aeb824..0cb66dcdeb 100644 --- a/Source/Core/Common/Src/FileUtil.cpp +++ b/Source/Core/Common/Src/FileUtil.cpp @@ -163,6 +163,11 @@ bool DeleteDir(const char *filename) #endif
}
+bool Rename(const char *srcFilename, const char *destFilename)
+{
+ return (rename(srcFilename, destFilename) == 0);
+}
+
std::string GetUserDirectory()
{
#ifdef _WIN32
|
