use the FResourceFile interface in favor of FResourceLump's where possible.

This commit is contained in:
Christoph Oelckers 2023-12-10 12:20:06 +01:00
commit 749d4e3acb
4 changed files with 19 additions and 25 deletions

View file

@ -174,7 +174,6 @@ public:
int AddFromBuffer(const char* name, const char* type, char* data, int size, int id, int flags);
FileReader* GetFileReader(int wadnum); // Gets a FileReader object to the entire WAD
void InitHashChains();
FResourceLump* GetFileAt(int no);
protected:

View file

@ -226,7 +226,12 @@ public:
{
auto l = GetLump(entry);
return l ? l->NewReader() : FileReader();
}
int GetEntryFlags(int entry)
{
auto l = GetLump(entry);
return l ? l->Flags : 0;
}
ResourceData Read(int entry)