+ Hashing function no longer replaces slashes for backslashes (storm.dll v 2002 doesn't do that either)

+ Support for names beginning with slashes, like \/\BTNThoriumAmmunition.blp
This commit is contained in:
Ladislav Zezula
2015-11-07 23:04:44 +01:00
parent 18dda26660
commit dae6c5e315
8 changed files with 5166 additions and 5159 deletions

View File

@@ -138,7 +138,7 @@ static bool FileWasFoundBefore(
}
// Calculate the hash to the table
dwNameHash = HashString(szRealFileName, MPQ_HASH_NAME_A);
dwNameHash = ha->pfnHashString(szRealFileName, MPQ_HASH_NAME_A);
dwStartIndex = dwIndex = (dwNameHash % hs->dwSearchTableItems);
// The file might have been found before