Better implementation of XMLVersion check

This commit is contained in:
Sestain 2026-03-27 07:56:43 +02:00
parent 92ac6147a1
commit 39995c59ef
No known key found for this signature in database
GPG key ID: B795AE483D124ED9
2 changed files with 6 additions and 5 deletions

View file

@ -410,11 +410,11 @@ bool DLCManager::processDLCDataFile(DWORD &dwFilesProcessed, PBYTE pbData, DWORD
if( type != e_DLCParamType_Invalid )
{
parameterMapping[pParams->dwType] = type;
}
if (parameterName == L"XMLVERSION")
{
bXMLVersion = true;
if (type == e_DLCParamType_XMLVersion)
{
bXMLVersion = true;
}
}
uiCurrentByte+= sizeof(C4JStorage::DLC_FILE_PARAM)+(pParams->dwWchCount*sizeof(WCHAR));

View file

@ -31,7 +31,8 @@ public:
{
e_DLCParamType_Invalid = -1,
e_DLCParamType_DisplayName = 0,
e_DLCParamType_XMLVersion = 0,
e_DLCParamType_DisplayName,
e_DLCParamType_ThemeName,
e_DLCParamType_Free, // identify free skins
e_DLCParamType_Credit, // legal credits for DLC