Use RemoveFile instead of DeleteFile in fs.

Windows defines DeleteFile to DeleteFileA/W, causing confusion.
This commit is contained in:
Unknown W. Brackets
2013-02-08 10:20:52 -08:00
parent 0a1b3c296b
commit 1759bb8051
7 changed files with 10 additions and 14 deletions

View File

@@ -363,13 +363,13 @@ bool MetaFileSystem::RenameFile(const std::string &from, const std::string &to)
}
}
bool MetaFileSystem::DeleteFile(const std::string &filename)
bool MetaFileSystem::RemoveFile(const std::string &filename)
{
std::string of;
IFileSystem *system;
if (MapFilePath(filename, of, &system))
{
return system->DeleteFile(of);
return system->RemoveFile(of);
}
else
{