- lump flags cleanup.
This commit is contained in:
parent
025e80b74a
commit
ef300a9ea8
11 changed files with 20 additions and 52 deletions
|
|
@ -467,7 +467,7 @@ int FWadCollection::CheckNumForName (const char *name, int space)
|
|||
// from a Zip return that. WADs don't know these namespaces and single lumps must
|
||||
// work as well.
|
||||
if (space > ns_specialzipdirectory && lump->Namespace == ns_global &&
|
||||
!(lump->Flags & LUMPF_ZIPFILE)) break;
|
||||
!(lump->Flags & LUMPF_FULLPATH)) break;
|
||||
}
|
||||
i = NextLumpIndex[i];
|
||||
}
|
||||
|
|
@ -1539,7 +1539,7 @@ FileReader FWadCollection::OpenLumpReader(int lump)
|
|||
auto rl = LumpInfo[lump].lump;
|
||||
auto rd = rl->GetReader();
|
||||
|
||||
if (rl->RefCount == 0 && rd != nullptr && !rd->GetBuffer() && !(rl->Flags & (LUMPF_BLOODCRYPT | LUMPF_COMPRESSED)))
|
||||
if (rl->RefCount == 0 && rd != nullptr && !rd->GetBuffer() && !(rl->Flags & LUMPF_COMPRESSED))
|
||||
{
|
||||
FileReader rdr;
|
||||
rdr.OpenFilePart(*rd, rl->GetFileOffset(), rl->LumpSize);
|
||||
|
|
@ -1558,7 +1558,7 @@ FileReader FWadCollection::ReopenLumpReader(int lump, bool alwayscache)
|
|||
auto rl = LumpInfo[lump].lump;
|
||||
auto rd = rl->GetReader();
|
||||
|
||||
if (rl->RefCount == 0 && rd != nullptr && !rd->GetBuffer() && !alwayscache && !(rl->Flags & (LUMPF_BLOODCRYPT|LUMPF_COMPRESSED)))
|
||||
if (rl->RefCount == 0 && rd != nullptr && !rd->GetBuffer() && !alwayscache && !(rl->Flags & LUMPF_COMPRESSED))
|
||||
{
|
||||
int fileno = Wads.GetLumpFile(lump);
|
||||
const char *filename = Wads.GetWadFullName(fileno);
|
||||
|
|
@ -1677,24 +1677,6 @@ const char *FWadCollection::GetWadFullName (int wadnum) const
|
|||
}
|
||||
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// IsEncryptedFile
|
||||
//
|
||||
// Returns true if the first 256 bytes of the lump are encrypted for Blood.
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
bool FWadCollection::IsEncryptedFile(int lump) const
|
||||
{
|
||||
if ((unsigned)lump >= (unsigned)NumLumps)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return !!(LumpInfo[lump].lump->Flags & LUMPF_BLOODCRYPT);
|
||||
}
|
||||
|
||||
|
||||
// FMemLump -----------------------------------------------------------------
|
||||
|
||||
FMemLump::FMemLump ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue