// // cocos2d::CCTMXMapInfo::internalInit from 0xb3bbc8 to 0xb3bd40 (376 bytes) // // 3 xrefs: // > cocos2d::CCTMXMapInfo::initWithXML @ 0xb3bef8 // > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0xb3c0b4 // > @ 0xba840 // // 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::CCTMXMapInfo::internalInit(cocos2d::CCTMXMapInfo *a1, const char *a2, const char *a3) { cocos2d::CCArray *v5; // x0 cocos2d::CCArray *v6; // x0 cocos2d::CCArray *v7; // x0 cocos2d::CCFileUtils *v8; // x0 void *v9; // x0 size_t v10; // x0 cocos2d::CCArray *v11; // x0 cocos2d::CCDictionary *v12; // x21 cocos2d::CCDictionary *v13; // x21 unsigned int *v14; // x2 int v15; // w1 __int64 v17; // [xsp+50h] [xbp+50h] BYREF v5 = cocos2d::CCArray::create(_stack_chk_guard); *(_QWORD *)&a1[1].m_uIndexInArray = v5; cocos2d::CCObject::retain(v5); v7 = cocos2d::CCArray::create(v6); *(_QWORD *)&a1[1].m_uAutoReleaseCount = v7; cocos2d::CCObject::retain(v7); if ( a2 ) { v8 = cocos2d::CCFileUtils::sharedFileUtils(); ((void (__fastcall *)(__int64 *__return_ptr, cocos2d::CCFileUtils *, const char *, _QWORD))v8->createCCArrayWithContentsOfFile)( &v17, v8, a2, 0); sub_D163D4(&a1[2].m_uID, &v17); v9 = (void *)(v17 - 24); if ( (__int64 *)(v17 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v14 = (unsigned int *)(v17 - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *(_DWORD *)(v17 - 8); *(_DWORD *)(v17 - 8) = v15 - 1; } if ( v15 <= 0 ) operator delete(v9); } } if ( a3 ) { v10 = strlen(a3); sub_D1798C(&a1[2].m_nTag, a3, v10); } v11 = cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)&byte_4); *(_QWORD *)&a1[1].m_unknown2 = v11; cocos2d::CCObject::retain(v11); v12 = (cocos2d::CCDictionary *)operator new(0x48u); cocos2d::CCDictionary::CCDictionary(v12); a1[2].cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCTMXMapInfo_vtbl *)v12; v13 = (cocos2d::CCDictionary *)operator new(0x48u); cocos2d::CCDictionary::CCDictionary(v13); *(_QWORD *)&a1[2].m_uIndexInArray = v13; sub_D1798C(&a1[2].m_uAutoReleaseCount, &byte_F288A0, 0); BYTE4(a1[1].cocos2d::CCSAXDelegator::__vftable) = 0; a1[1].m_uOrderOfArrival = 0; LODWORD(a1[1].cocos2d::CCSAXDelegator::__vftable) = 1; a1[2].m_unknown2 = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source