From fc5e2d4861dd10e751e7bc069fad77a1b0ee1513 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 1 Aug 2005 00:14:22 +0000 Subject: (svn r2775) Deleting a file can fail, display an error message when it happens --- os2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os2.c') diff --git a/os2.c b/os2.c index c942672f4..4d3a42676 100644 --- a/os2.c +++ b/os2.c @@ -415,12 +415,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); - unlink(path); + return unlink(path) == 0; } bool FileExists(const char *filename) -- cgit v1.2.3-70-g09d2