- refactored all file access in SW frontend to use the FileReader variant and added a few utilities to avoid opening handles.

Because use of the handle API needs to be eliminated before a functioning resource management can be plugged in here.
This commit is contained in:
Christoph Oelckers 2019-10-20 20:08:17 +02:00
parent 1b96861615
commit 7cacb7203f
8 changed files with 60 additions and 68 deletions

View file

@ -129,15 +129,6 @@ int32_t G_CheckCmdSwitch(int32_t argc, char const * const * argv, const char *st
return 0;
}
// returns: 1 if file could be opened, 0 else
int32_t testkopen(const char *filename, char searchfirst)
{
buildvfs_kfd fd = kopen4load(filename, searchfirst);
if (fd != buildvfs_kfd_invalid)
kclose(fd);
return (fd != buildvfs_kfd_invalid);
}
// checks from path and in ZIPs, returns 1 if NOT found
int32_t check_file_exist(const char *fn)
{