now need to get m2
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user