mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Better implementation of XMLVersion check
This commit is contained in:
parent
92ac6147a1
commit
39995c59ef
|
|
@ -410,11 +410,11 @@ bool DLCManager::processDLCDataFile(DWORD &dwFilesProcessed, PBYTE pbData, DWORD
|
||||||
if( type != e_DLCParamType_Invalid )
|
if( type != e_DLCParamType_Invalid )
|
||||||
{
|
{
|
||||||
parameterMapping[pParams->dwType] = type;
|
parameterMapping[pParams->dwType] = type;
|
||||||
}
|
|
||||||
|
|
||||||
if (parameterName == L"XMLVERSION")
|
if (type == e_DLCParamType_XMLVersion)
|
||||||
{
|
{
|
||||||
bXMLVersion = true;
|
bXMLVersion = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uiCurrentByte+= sizeof(C4JStorage::DLC_FILE_PARAM)+(pParams->dwWchCount*sizeof(WCHAR));
|
uiCurrentByte+= sizeof(C4JStorage::DLC_FILE_PARAM)+(pParams->dwWchCount*sizeof(WCHAR));
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,8 @@ public:
|
||||||
{
|
{
|
||||||
e_DLCParamType_Invalid = -1,
|
e_DLCParamType_Invalid = -1,
|
||||||
|
|
||||||
e_DLCParamType_DisplayName = 0,
|
e_DLCParamType_XMLVersion = 0,
|
||||||
|
e_DLCParamType_DisplayName,
|
||||||
e_DLCParamType_ThemeName,
|
e_DLCParamType_ThemeName,
|
||||||
e_DLCParamType_Free, // identify free skins
|
e_DLCParamType_Free, // identify free skins
|
||||||
e_DLCParamType_Credit, // legal credits for DLC
|
e_DLCParamType_Credit, // legal credits for DLC
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue