// // cocos2d::CCConfiguration::loadConfigFile from 0xd21ac0 to 0xd21d7c (700 bytes) // // 1 xrefs: // > @ 0x7d1a0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:07:12 +0000 // __int64 __fastcall cocos2d::CCConfiguration::loadConfigFile(cocos2d::CCConfiguration *this, cocos2d::CCDictionary *a2) { __int64 v3; // x21 const void *v4; // x20 void *v5; // x20 _QWORD *v6; // x20 cocos2d::CCDirector *v7; // x0 __int64 v8; // x23 __int64 i; // x21 size_t v10; // x0 size_t v11; // x20 __int64 v12; // x26 char *v13; // x3 __int64 v14; // x20 cocos2d::CCDirector *v15; // x0 cocos2d::CCObject *v17; // x20 size_t v18; // x0 __int64 v19; // x22 unsigned __int64 v20; // x0 __int64 v21; // x22 char *v22; // x0 __int64 v23; // [xsp+50h] [xbp+50h] BYREF size_t v24; // [xsp+58h] [xbp+58h] void *v25; // [xsp+60h] [xbp+60h] v3 = cocos2d::CCDictionary::createWithContentsOfFile(a2, _stack_chk_guard); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "metadata", 8u); v4 = (const void *)cocos2d::CCDictionary::objectForKey(v3, &v23); if ( (v23 & 1) != 0 ) operator delete(v25); if ( v4 && _dynamic_cast( v4, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0) ) { v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "format", 6u); v5 = (void *)cocos2d::CCDictionary::objectForKey(v4, &v23); if ( (v23 & 1) != 0 ) operator delete(v25); if ( v5 && _dynamic_cast( v5, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString, 0) && (unsigned int)cocos2d::CCString::intValue((cocos2d::CCString *)v5) == 1 ) { v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "data", 4u); v6 = (_QWORD *)cocos2d::CCDictionary::objectForKey(v3, &v23); if ( (v23 & 1) != 0 ) operator delete(v25); if ( v6 ) { v7 = (cocos2d::CCDirector *)_dynamic_cast( v6, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0); if ( v7 ) { v8 = v6[7]; if ( v8 ) { for ( i = *(_QWORD *)(v8 + 288); ; i = *(_QWORD *)(i + 288) ) { v23 = 0; v24 = 0; v25 = nullptr; v10 = strlen((const char *)v8); v11 = v10; v12 = *((_QWORD *)this + 11); if ( v10 > 0x16 ) { v20 = (v10 + 16) & 0xFFFFFFFFFFFFFFF0LL; v21 = v20 | 1; v22 = (char *)operator new(v20); v23 = v21; v13 = v22; v25 = v22; v24 = v11; } else { LOBYTE(v23) = 2 * v10; v13 = (char *)&v23 + 1; if ( !v10 ) goto LABEL_18; } v13 = (char *)memcpy(v13, (const void *)v8, v11); LABEL_18: v13[v11] = 0; v14 = cocos2d::CCDictionary::objectForKey(v12, &v23); v7 = (cocos2d::CCDirector *)(unsigned __int8)v23; if ( (v23 & 1) != 0 ) { operator delete(v25); if ( v14 ) goto LABEL_20; } else if ( v14 ) { goto LABEL_20; } v17 = *(cocos2d::CCObject **)(v8 + 264); v23 = 0; v24 = 0; v25 = nullptr; v18 = strlen((const char *)v8); v19 = *((_QWORD *)this + 11); std::string::__init(&v23, (void *)v8, v18); cocos2d::CCDictionary::setObject(v19, v17); v7 = (cocos2d::CCDirector *)(unsigned __int8)v23; if ( (v23 & 1) != 0 ) operator delete(v25); LABEL_20: if ( !i ) break; v8 = i; } } v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::setDefaultValues(v15); } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source