Added support for NP_Protect protector (SC2 Maps)

This commit is contained in:
Ladislav Zezula
2020-09-22 17:02:57 +02:00
parent 29fcb13cba
commit 4a07a5851c
6 changed files with 484 additions and 470 deletions

View File

@@ -945,6 +945,7 @@ void * LoadMpqTable(
// On archives v 1.0, hash table and block table can go beyond EOF.
// Storm.dll reads as much as possible, then fills the missing part with zeros.
// Abused by Spazzler map protector which sets hash table size to 0x00100000
// Abused by NP_Protect in MPQs v4 as well
if(ha->pHeader->wFormatVersion == MPQ_FORMAT_VERSION_1)
{
// Cut the table size