mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-03 10:41:24 +00:00
- 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:
parent
1b96861615
commit
7cacb7203f
8 changed files with 60 additions and 68 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue