use the FResourceFile interface in favor of FResourceLump's where possible.
This commit is contained in:
parent
5c04185d5a
commit
749d4e3acb
4 changed files with 19 additions and 25 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue