+ 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

@@ -202,7 +202,7 @@ bool WINAPI SFileCreateArchive2(const TCHAR * szMpqName, PSFILE_CREATE_MPQ pCrea
if(nError == ERROR_SUCCESS)
{
memset(ha, 0, sizeof(TMPQArchive));
ha->pfnHashString = HashString;
ha->pfnHashString = HashStringSlash;
ha->pStream = pStream;
ha->dwSectorSize = pCreateInfo->dwSectorSize;
ha->UserDataPos = MpqPos;