replace per-platform DIR_SEP and DIR_SEP_CHR with "/" and '/', cleanup some wii fs things, made CWII_IPC_HLE_Device_fs::ExecuteCommand DELETE_FILE also delete the device if it's a dir.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1406 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2008-12-05 20:00:34 +00:00
parent 116509985a
commit 5c805163bf
5 changed files with 29 additions and 26 deletions

View file

@ -78,7 +78,7 @@ bool Delete(const char *filename)
if (IsDirectory(filename))
return false;
#ifdef _WIN32
DeleteFile(filename);
DeleteFile(SanitizePath(filename).c_str());
#else
unlink(filename);
#endif
@ -222,7 +222,7 @@ bool DeleteDir(const char *filename)
bool Rename(const char *srcFilename, const char *destFilename)
{
return (rename(srcFilename, destFilename) == 0);
return (rename(SanitizePath(srcFilename).c_str(), SanitizePath(destFilename).c_str()) == 0);
}
bool Copy(const char *srcFilename, const char *destFilename)