forked from mirror/OpenTTD
(svn r2775) Deleting a file can fail, display an error message when it happens
This commit is contained in:
4
win32.c
4
win32.c
@@ -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)
|
||||
|
Reference in New Issue
Block a user