summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorJohn Peterson <jpeterson57@gmail.com>2008-11-29 08:49:22 +0000
committerJohn Peterson <jpeterson57@gmail.com>2008-11-29 08:49:22 +0000
commit409720b91a58d4eff79d959ca00f65ee4ad4246d (patch)
tree93879f6304146580366f157ac5656095c5890efb /Source/Core/Common
parentf4cae8c9b7f3a71b1ae5c691d5bdb9a038b12f3d (diff)
Wii IPC file handling: Made some comments and changes to try to locate the Mario Kart and SSBB errors, in case they are file handling errors
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1327 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Src/FileUtil.cpp9
-rw-r--r--Source/Core/Common/Src/FileUtil.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp
index e3401387ac..60bee857e1 100644
--- a/Source/Core/Common/Src/FileUtil.cpp
+++ b/Source/Core/Common/Src/FileUtil.cpp
@@ -172,6 +172,15 @@ bool Rename(const char *srcFilename, const char *destFilename)
return (rename(srcFilename, destFilename) == 0);
}
+bool Copy(const char *srcFilename, const char *destFilename)
+{
+#ifdef _WIN32
+ return CopyFile(srcFilename, destFilename, FALSE);
+#else
+
+#endif
+}
+
std::string GetUserDirectory()
{
#ifdef _WIN32
diff --git a/Source/Core/Common/Src/FileUtil.h b/Source/Core/Common/Src/FileUtil.h
index 74f1ed5592..9f19e0a404 100644
--- a/Source/Core/Common/Src/FileUtil.h
+++ b/Source/Core/Common/Src/FileUtil.h
@@ -44,6 +44,7 @@ bool CreateDir(const char *filename);
bool Delete(const char *filename);
bool DeleteDir(const char *filename);
bool Rename(const char *srcFilename, const char *destFilename);
+bool Copy(const char *srcFilename, const char *destFilename);
u64 GetSize(const char *filename);
std::string GetUserDirectory();
bool CreateEmptyFile(const char *filename);