From abfeb890943638f8704dd776592a2acbd7425782 Mon Sep 17 00:00:00 2001 From: Duarte Duarte Date: Sun, 22 Feb 2015 05:38:27 +0000 Subject: Dep/CascLib: Update to https://github.com/ladislav-zezula/CascLib/commit/4235e5f2033e2de709c83034503d49e532d03630 --- dep/CascLib/src/CascFindFile.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'dep/CascLib/src/CascFindFile.cpp') diff --git a/dep/CascLib/src/CascFindFile.cpp b/dep/CascLib/src/CascFindFile.cpp index 753e00a90a2..0bfe16cae1d 100644 --- a/dep/CascLib/src/CascFindFile.cpp +++ b/dep/CascLib/src/CascFindFile.cpp @@ -149,18 +149,22 @@ static bool DoStorageSearch_ListFile(TCascSearch * pSearch, PCASC_FIND_DATA pFin { PCASC_ROOT_ENTRY pRootEntry; TCascStorage * hs = pSearch->hs; + char szFileName2[MAX_PATH + 1]; DWORD TableIndex = 0; // Get next file from the listfile while(ListFile_GetNext(pSearch->pCache, pSearch->szMask, pSearch->szFileName, MAX_PATH)) { #ifdef _DEBUG - //if(!_stricmp(pSearch->szFileName, "Character\\NightElf\\Female\\NightElf_FemaleFacialLowerHair01_02_HD.blp")) - // DebugBreak(); +// if(!_stricmp(pSearch->szFileName, "Character\\BloodElf\\Female\\DeathKnightEyeGlow.blp")) +// DebugBreak(); #endif + // Normalize the file name found in the list file + NormalizeFileName_UpperBkSlash(szFileName2, pSearch->szFileName, MAX_PATH); + // Find the root entry - pRootEntry = FindRootEntry(hs, pSearch->szFileName, &TableIndex); + pRootEntry = FindRootEntry(hs, szFileName2, &TableIndex); if(pRootEntry != NULL) { // Verify whether the file exists in the storage -- cgit v1.2.3