(svn r2775) Deleting a file can fail, display an error message when it happens

This commit is contained in:
tron
2005-08-01 00:14:22 +00:00
parent fcf5ace08f
commit fc5e2d4861
5 changed files with 10 additions and 8 deletions

View File

@@ -911,12 +911,12 @@ void FiosMakeSavegameName(char *buf, const char *name)
sprintf(buf, "%s\\%s%s", _fios_path, name, extension);
}
void FiosDelete(const char *name)
bool FiosDelete(const char *name)
{
char path[512];
snprintf(path, lengthof(path), "%s\\%s", _fios_path, name);
DeleteFile(path);
return DeleteFile(path) != 0;
}
bool FileExists(const char *filename)