From 03d54436363ad920f45c9f990150f566f04788d5 Mon Sep 17 00:00:00 2001 From: "fires.gc" Date: Thu, 6 Nov 2008 22:01:09 +0000 Subject: it seems that "rename" overwrites files... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1086 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/FileUtil.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/Core/Common/Src/FileUtil.cpp') 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 -- cgit v1.2.3