// // cocos2d::CCConfiguration::loadConfigFile from 0x7b4134 to 0x7b42ca (406 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:00:09 +0000 // cocos2d::CCDirector *__fastcall cocos2d::CCConfiguration::loadConfigFile( cocos2d::CCConfiguration *this, cocos2d::CCDictionary *a2) { int v3; // r11 const void *v4; // r10 cocos2d::CCDirector *result; // r0 void *v6; // r10 _DWORD *v7; // r10 int v8; // r5 int v9; // r7 size_t v10; // r0 int v11; // r8 int v12; // r8 int v13; // r3 cocos2d::CCObject *v14; // r11 size_t v15; // r0 int v16; // r3 cocos2d::CCDirector *v17; // r0 int v18; // [sp+4h] [bp-18h] int v19; // [sp+8h] [bp-14h] BYREF int v20; // [sp+Ch] [bp-10h] int v21; // [sp+10h] [bp-Ch] v19 = 0; v20 = 0; v21 = 0; v3 = cocos2d::CCDictionary::createWithContentsOfFile(a2, (const char *)a2); std::string::__init(&v19, "metadata", 8u); v4 = (const void *)cocos2d::CCDictionary::objectForKey(v3, &v19); result = (cocos2d::CCDirector *)std::string::~string((int)&v19); if ( v4 ) { result = (cocos2d::CCDirector *)_dynamic_cast( v4, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0); if ( result ) { v19 = 0; v20 = 0; v21 = 0; std::string::__init(&v19, "format", 6u); v6 = (void *)cocos2d::CCDictionary::objectForKey(v4, &v19); result = (cocos2d::CCDirector *)std::string::~string((int)&v19); if ( v6 ) { result = (cocos2d::CCDirector *)_dynamic_cast( v6, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString, 0); if ( result ) { result = (cocos2d::CCDirector *)cocos2d::CCString::intValue((cocos2d::CCString *)v6); if ( result == (cocos2d::CCDirector *)((char *)&dword_0 + 1) ) { v19 = 0; v20 = 0; v21 = 0; std::string::__init(&v19, "data", 4u); v7 = (_DWORD *)cocos2d::CCDictionary::objectForKey(v3, &v19); result = (cocos2d::CCDirector *)std::string::~string((int)&v19); if ( v7 ) { result = (cocos2d::CCDirector *)_dynamic_cast( v7, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0); if ( result ) { v8 = v7[13]; if ( v8 ) v9 = *(_DWORD *)(v8 + 272); else v9 = 0; while ( v8 ) { v19 = 0; v20 = 0; v21 = 0; v10 = strlen((const char *)v8); v11 = *((_DWORD *)this + 20); std::string::__init(&v19, (const void *)v8, v10); v12 = cocos2d::CCDictionary::objectForKey(v11, &v19); result = (cocos2d::CCDirector *)std::string::~string((int)&v19); if ( !v12 ) { v13 = *((_DWORD *)this + 20); v14 = *(cocos2d::CCObject **)(v8 + 260); v19 = 0; v18 = v13; v20 = 0; v21 = 0; v15 = strlen((const char *)v8); std::string::__init(&v19, (const void *)v8, v15); cocos2d::CCDictionary::setObject(v18, v14); result = (cocos2d::CCDirector *)std::string::~string((int)&v19); } if ( v9 ) v16 = *(_DWORD *)(v9 + 272); else v16 = 0; v8 = v9; v9 = v16; } v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(result); return (cocos2d::CCDirector *)cocos2d::CCDirector::setDefaultValues(v17); } } } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source