summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2008-11-30 13:39:11 +0000
committernakeee <nakeee@gmail.com>2008-11-30 13:39:11 +0000
commitb46152cdbdd9329969b6da761e9b5c826990bab5 (patch)
treed363499de68623bba7e10ed9bb7eeaa7355a5058 /Source/Core/Common
parent1c3415118288f8ee9ed189a1b8f70a2d598b0745 (diff)
few more small fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1337 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Src/FileUtil.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp
index 8342c0baed..747bbda2af 100644
--- a/Source/Core/Common/Src/FileUtil.cpp
+++ b/Source/Core/Common/Src/FileUtil.cpp
@@ -83,11 +83,16 @@ bool Delete(const char *filename)
std::string SanitizePath(const char *filename)
{
- std::string copy = filename;
- for (size_t i = 0; i < copy.size(); i++)
- if (copy[i] == '/')
- copy[i] = '\\';
- return copy;
+
+ std::string copy = filename;
+#ifdef _WIN32
+ for (size_t i = 0; i < copy.size(); i++)
+ if (copy[i] == '/')
+ copy[i] = '\\';
+#else
+ // Should we do the otherway around?
+#endif
+ return copy;
}
void Launch(const char *filename)