// // GameToolbox::stringSetupToDict from 0x2eccdc to 0x2ece14 (312 bytes) // // 2 xrefs: // > LevelSettingsObject::objectFromString @ 0x36d5a2 // > StartPosObject::loadSettingsFromString @ 0x3eacfe // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCDictionary *__fastcall GameToolbox::stringSetupToDict(char **a1, char *a2) { cocos2d::CCDictionary *v4; // r5 cocos2d::CCArray *v5; // r0 cocos2d::CCArray *v6; // r6 int v7; // r9 int v8; // r8 const std::string *v9; // r1 cocos2d::CCObject *v10; // r0 unsigned int v11; // r4 cocos2d::CCString *v12; // r0 char *CString; // r10 cocos2d::CCObject *v14; // r9 unsigned int v15; // r9 int v17; // [sp+0h] [bp-24h] int v18; // [sp+10h] [bp-14h] BYREF char *v19; // [sp+14h] [bp-10h] BYREF char v20; // [sp+18h] [bp-Ch] BYREF v4 = cocos2d::CCDictionary::create(); v5 = (cocos2d::CCArray *)sub_776584((int)&v18, *a1); v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(v5); v7 = sub_774A78((int)&v18, a2); v8 = 0; v17 = *(_DWORD *)(v18 - 12); while ( 1 ) { sub_776158(&v19, &v18, v8, v7 - v8); if ( *((_DWORD *)v19 - 3) || v8 != v17 ) { sub_776584((int)&v20, v19); v10 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v20, v9); cocos2d::CCArray::addObject(v6, v10); sub_774008(&v20); } if ( v7 == -1 ) break; v8 = v7 + 1; v7 = sub_774A78((int)&v18, a2); sub_774008(&v19); } sub_774008(&v19); sub_774008(&v18); v11 = 0; while ( 1 ) { v15 = v11; if ( v11 >= cocos2d::CCArray::count(v6) ) return v4; v11 += 2; if ( cocos2d::CCArray::count(v6) < v11 ) break; v12 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v6, v15); CString = (char *)cocos2d::CCString::getCString(v12); v14 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v6, v11 - 1); sub_776584((int)&v20, CString); cocos2d::CCDictionary::setObject((int)v4, v14); sub_774008(&v20); } return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source