got rid of FZipLump.
This commit is contained in:
parent
c27c8c232a
commit
e35b0f1453
6 changed files with 30 additions and 207 deletions
|
|
@ -781,25 +781,6 @@ int FileSystem::FileLength (int lump) const
|
|||
return lump_p.resfile->Length(lump_p.resindex);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// GetFileOffset
|
||||
//
|
||||
// Returns the offset from the beginning of the file to the lump.
|
||||
// Returns -1 if the lump is compressed or can't be read directly
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
int FileSystem::GetFileOffset (int lump)
|
||||
{
|
||||
if ((size_t)lump >= NumEntries)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
const auto &lump_p = FileInfo[lump];
|
||||
return lump_p.resfile->Offset(lump_p.resindex);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue