// // cocos2d::CCConfiguration::loadConfigFile from 0xab07a0 to 0xab0b28 (904 bytes) // // 1 xrefs: // > @ 0x5b308 // // 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 // void cocos2d::CCConfiguration::loadConfigFile(cocos2d::CCConfiguration *a1, const char *a2) { cocos2d::CCDictionary *v3; // x25 cocos2d::CCDictionary *v4; // x20 char *v5; // x0 cocos2d::CCString *v6; // x20 char *v7; // x0 _QWORD *v8; // x20 char *v9; // x0 __int64 v10; // x27 __int64 i; // x20 cocos2d::CCDictionary *v12; // x28 __int64 v13; // x28 char *v14; // x0 cocos2d::CCDirector *v15; // x0 unsigned int *v16; // x1 int v17; // w2 __int64 v18; // x26 cocos2d::CCObject *v19; // x28 char *v20; // x0 unsigned int *v21; // x1 int v22; // w2 unsigned int *v23; // x1 int v24; // w2 unsigned int *v25; // x1 int v26; // w2 unsigned int *v27; // x1 int v28; // w2 std::string v29; // [xsp+80h] [xbp+80h] BYREF v3 = cocos2d::CCDictionary::createWithContentsOfFile(a2); sub_D153B8((int)&v29, "metadata"); v4 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(v3, &v29); v5 = (char *)v29.m_data.m_data - 24; if ( (__int64 *)v29.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v23 = (unsigned int *)((char *)v29.m_data.m_data - 8); do v24 = __ldaxr(v23); while ( __stlxr(v24 - 1, v23) ); } else { v24 = *((_DWORD *)v29.m_data.m_data - 2); *((_DWORD *)v29.m_data.m_data - 2) = v24 - 1; } if ( v24 <= 0 ) operator delete(v5); } if ( v4 && _dynamic_cast( v4, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0) ) { sub_D153B8((int)&v29, "format"); v6 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v4, &v29); v7 = (char *)v29.m_data.m_data - 24; if ( (__int64 *)v29.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v25 = (unsigned int *)((char *)v29.m_data.m_data - 8); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); } else { v26 = *((_DWORD *)v29.m_data.m_data - 2); *((_DWORD *)v29.m_data.m_data - 2) = v26 - 1; } if ( v26 <= 0 ) operator delete(v7); } if ( v6 && _dynamic_cast( v6, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString, 0) && cocos2d::CCString::intValue(v6) == 1 ) { sub_D153B8((int)&v29, "data"); v8 = (_QWORD *)cocos2d::CCDictionary::objectForKey(v3, &v29); v9 = (char *)v29.m_data.m_data - 24; if ( (__int64 *)v29.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v27 = (unsigned int *)((char *)v29.m_data.m_data - 8); do v28 = __ldaxr(v27); while ( __stlxr(v28 - 1, v27) ); } else { v28 = *((_DWORD *)v29.m_data.m_data - 2); *((_DWORD *)v29.m_data.m_data - 2) = v28 - 1; } if ( v28 <= 0 ) operator delete(v9); } if ( v8 && _dynamic_cast( v8, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCDictionary, 0) ) { v10 = v8[7]; if ( v10 ) { for ( i = *(_QWORD *)(v10 + 288); ; i = *(_QWORD *)(i + 288) ) { v12 = *(cocos2d::CCDictionary **)&a1[1].m_uIndexInArray; sub_D153B8((int)&v29, (char *)v10); v13 = cocos2d::CCDictionary::objectForKey(v12, &v29); v14 = (char *)v29.m_data.m_data - 24; if ( (__int64 *)v29.m_data.m_data - 3 == &qword_124B6B0 ) goto LABEL_14; if ( &pthread_create ) { v16 = (unsigned int *)((char *)v29.m_data.m_data - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *((_DWORD *)v29.m_data.m_data - 2); *((_DWORD *)v29.m_data.m_data - 2) = v17 - 1; } if ( v17 > 0 ) { LABEL_14: if ( v13 ) goto LABEL_15; } else { operator delete(v14); if ( v13 ) goto LABEL_15; } v18 = *(_QWORD *)&a1[1].m_uIndexInArray; v19 = *(cocos2d::CCObject **)(v10 + 264); sub_D153B8((int)&v29, (char *)v10); cocos2d::CCDictionary::setObject(v18, v19); v20 = (char *)v29.m_data.m_data - 24; if ( (__int64 *)v29.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v21 = (unsigned int *)((char *)v29.m_data.m_data - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *((_DWORD *)v29.m_data.m_data - 2); *((_DWORD *)v29.m_data.m_data - 2) = v22 - 1; } if ( v22 <= 0 ) operator delete(v20); } LABEL_15: if ( !i ) break; v10 = i; } } v15 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::setDefaultValues(v15); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source