now need to get m2

This commit is contained in:
2026-01-11 15:38:14 +02:00
parent 8f022da4ef
commit 6604c67ec5
10 changed files with 177 additions and 82 deletions

View File

@@ -37,7 +37,7 @@ IJSONObject *CPropertyListManager::ReadDict( IXMLObject *pDict )
{
szKeyToCreate = c->GetChildren()[0]->GetValue();
}
if ( !V_strcmp(c->GetValue(), "string"))
if ( !V_strcmp(c->GetValue(), "string") || !V_strcmp(c->GetValue(), "data") )
{
if ( szKeyToCreate == NULL )
continue;
@@ -49,6 +49,18 @@ IJSONObject *CPropertyListManager::ReadDict( IXMLObject *pDict )
pObject->SetValue(szKeyToCreate, pVal);
szKeyToCreate = NULL;
}
if ( !V_strcmp(c->GetValue(), "integer") )
{
if ( szKeyToCreate == NULL )
continue;
IJSONValue *pVal = JSONManager()->CreateValue();
if (c->GetChildren().GetSize()>0)
pVal->SetNumberValue(atol(c->GetChildren()[0]->GetValue()));
else
pVal->SetNumberValue(0);
pObject->SetValue(szKeyToCreate, pVal);
szKeyToCreate = NULL;
}
if ( !V_strcmp(c->GetValue(), "dict"))
{
if ( szKeyToCreate == NULL )