diff options
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
|
