Fix deletequick() and deletetele() not deleting their files

The problem here is that we're directly using the C stdio library,
instead of using PHYSFS's stuff. So I've added a function
FILESYSTEM_delete() that does exactly that.
This commit is contained in:
Misa
2020-04-26 13:22:26 -07:00
committed by Ethan Lee
parent 842eb669b7
commit 2076898020
3 changed files with 11 additions and 4 deletions

View File

@@ -510,3 +510,8 @@ bool FILESYSTEM_openDirectory(const char *dname)
return false;
}
#endif
bool FILESYSTEM_delete(const char *name)
{
return PHYSFS_delete(name) != 0;
}