mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-27 14:42:23 +00:00
Ignore binary pk4's
We only load local game libraries, do not ever load binary pk4's.
This commit is contained in:
parent
3e9545fb71
commit
3d4be95474
1 changed files with 12 additions and 0 deletions
|
@ -1353,6 +1353,18 @@ pack_t *idFileSystemLocal::LoadZipFile( const char *zipfile ) {
|
||||||
unzGoToNextFile(uf);
|
unzGoToNextFile(uf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ignore all binary paks
|
||||||
|
confHash = HashFileName(BINARY_CONFIG);
|
||||||
|
for (pakFile = pack->hashTable[confHash]; pakFile; pakFile = pakFile->next) {
|
||||||
|
if (!FilenameCompare(pakFile->name, BINARY_CONFIG)) {
|
||||||
|
unzClose(uf);
|
||||||
|
delete[] buildBuffer;
|
||||||
|
delete pack;
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// check if this is an addon pak
|
// check if this is an addon pak
|
||||||
pack->addon = false;
|
pack->addon = false;
|
||||||
confHash = HashFileName( ADDON_CONFIG );
|
confHash = HashFileName( ADDON_CONFIG );
|
||||||
|
|
Loading…
Reference in a new issue