got rid of FDirectoryLump.

This commit is contained in:
Christoph Oelckers 2023-12-12 19:20:23 +01:00
commit f5f9d5b5d8
4 changed files with 15 additions and 82 deletions

View file

@ -232,7 +232,7 @@ public:
void SetFirstLump(uint32_t f) { FirstLump = f; }
const char* GetHash() const { return Hash; }
virtual FResourceLump *GetLump(int no) = 0;
virtual FResourceLump* GetLump(int no) { throw FileSystemException("GetLump base function called."); }
int EntryCount() const { return NumLumps; }
int FindEntry(const char* name);
@ -246,7 +246,7 @@ public:
return (entry < NumLumps) ? Entries[entry].Position : 0;
}
FileReader GetEntryReader(int entry, bool newreader = true)
virtual FileReader GetEntryReader(uint32_t entry, bool newreader = true)
{
auto l = GetLump(entry);
return l ? l->NewReader() : FileReader();