Ignore binary pk4's

We only load local game libraries, do not ever load binary pk4's.
This commit is contained in:
dhewg 2012-07-03 21:54:19 +02:00
parent 3e9545fb71
commit 3d4be95474

View file

@ -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 );