mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-02-04 05:26:24 +01:00
+ 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user