diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-07-18 23:37:19 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-07-18 23:37:19 +0200 |
commit | fe4d11c65a512c61ccb924fbf3dc20c8cfc84dc7 (patch) | |
tree | 86888deb22268503d70ae7259bbf17add4dcdc1f /dep/CascLib/src/CascRootFile_Diablo3.cpp | |
parent | a9a13d10f7c510bb392539608cb276435a78b688 (diff) |
Tools: Extractor updates
* VMAP extractor does not work due to a bug in CascLib
Diffstat (limited to 'dep/CascLib/src/CascRootFile_Diablo3.cpp')
-rw-r--r-- | dep/CascLib/src/CascRootFile_Diablo3.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dep/CascLib/src/CascRootFile_Diablo3.cpp b/dep/CascLib/src/CascRootFile_Diablo3.cpp index c515567af5f..6fa8309a2fe 100644 --- a/dep/CascLib/src/CascRootFile_Diablo3.cpp +++ b/dep/CascLib/src/CascRootFile_Diablo3.cpp @@ -231,7 +231,7 @@ static const DIABLO3_ASSET_INFO Assets[] = {"Accolade", "aco"}, // 0x42 }; -static const DIABLO3_ASSET_INFO UnknownAsset = {"Unknown", "xxx"}; +static const DIABLO3_ASSET_INFO UnknownAsset = {"Unknown", "unk"}; #define DIABLO3_ASSET_COUNT (sizeof(Assets) / sizeof(Assets[0])) @@ -327,7 +327,7 @@ static size_t CreateShortName( } } - // If we havent't found the package, we either use the default asset extension or "xxx" + // If we havent't found the package, we either use the default asset extension or "unk" if(szPackageName == NULL) { if(dwSubIndex == DIABLO3_INVALID_INDEX) @@ -337,7 +337,7 @@ static size_t CreateShortName( } else { - strcpy(szBuffer + nLength, "xxx"); + strcpy(szBuffer + nLength, "unk"); nLength += 3; } } @@ -887,7 +887,7 @@ static int ParseCoreTOC( // Find out the entry with the maximum index for(DWORD n = 0; n < pTocHeader->EntryCounts[i]; n++) { - if(pTocEntry->FileIndex > dwFileIndexes) + if(pTocEntry->FileIndex >= dwFileIndexes) dwFileIndexes = pTocEntry->FileIndex + 1; pTocEntry++; } |