few more small fixes

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1337 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2008-11-30 13:39:11 +00:00
parent 1c34151182
commit b46152cdbd
2 changed files with 53 additions and 39 deletions

View File

@ -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)