// // cocos2d::CCComponentContainer::add from 0x100164d80 to 0x100164ea0 (288 bytes) // // 1 xrefs: // > @ 0x10079bd88 // // 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 // bool __fastcall cocos2d::CCComponentContainer::add(cocos2d::CCComponentContainer *a1, cocos2d::CCComponent *a2) { cocos2d::CCDictionary *m_pComponents; // x21 cocos2d::CCDictionary *v5; // x0 char *v6; // x0 const void *v7; // x0 void *v8; // x0 void *v9; // x21 cocos2d::CCDictionary *v11; // x20 char *v12; // x0 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v14; // [xsp+1Fh] [xbp-21h] sub_10012A618((__int64)a2); m_pComponents = a1->m_pComponents; if ( !m_pComponents ) { v5 = cocos2d::CCDictionary::create(); a1->m_pComponents = v5; cocos2d::CCObject::retain(v5); m_pComponents = a1->m_pComponents; } v6 = (char *)sub_10012A5FC((__int64)a2); sub_100009900(__p, v6); v7 = (const void *)cocos2d::CCDictionary::objectForKey_1(m_pComponents, __p); if ( !v7 ) { if ( v14 < 0 ) operator delete(__p[0]); goto LABEL_11; } v8 = __dynamic_cast( v7, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCComponent, 0); v9 = v8; if ( (v14 & 0x80000000) == 0 ) { if ( !v8 ) goto LABEL_11; return 0; } operator delete(__p[0]); if ( v9 ) return 0; LABEL_11: sub_10012A620((__int64)a2, (__int64)a1->m_pOwner); v11 = a1->m_pComponents; v12 = (char *)sub_10012A5FC((__int64)a2); sub_100009900(__p, v12); cocos2d::CCDictionary::setObject_1(v11, a2, __p); if ( v14 < 0 ) operator delete(__p[0]); ((void (__fastcall *)(cocos2d::CCComponent *))a2->onEnter)(a2); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source