Cleanup of WAD module in preparation for larger changes needed to solve some of the outstanding resource management issues:
Added option to re-use an already open DFILE* handle to W_OpenAuxiliary Reworked the implementation so that missing/locked files no longer result in a critical error (like the primary cache). Added missing error messages on (Z_)malloc fail.
Fixed missing lump cache select in W_ReadLump.
Fixed dangling pointers in W_CloseAuxiliary and made it a public method.
Pack structures used to read directly the WAD header and the lump directory.
Replaced the iwad member of filerecord_t with a flag (named FRF_IWAD)
Removed W_IsIWAD as it is no longer needed.
Moved the DFILE* argument for F_Read to the first argument in line with conventions otherwise employed throughout the rest of the filesystem abstraction layer.
Renamed DD_RegisterVFS to F_Register and moved into sys_filein.c
Cleanup of WAD module in preparation for larger changes needed to solve some
of the outstanding resource management issues:
Reworked the implementation so that missing/locked files no longer result
in a critical error (like the primary cache). Added missing error messages
on (Z_)malloc fail.
conventions otherwise employed throughout the rest of the filesystem
abstraction layer.