it seems that "rename" overwrites files...

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1086 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
fires.gc 2008-11-06 22:01:09 +00:00
parent 2e4cde02fd
commit 03d5443636
3 changed files with 19 additions and 5 deletions

View file

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