// // GJBaseGameLayer::sortStickyGroups from 0x10011a5d0 to 0x10011a718 (328 bytes) // // 2 xrefs: // > LevelEditorLayer::init @ 0x1000dc079 // > GJBaseGameLayer::updateSpecialGroupData @ 0x1001173e1 // // 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 __fastcall GJBaseGameLayer::sortStickyGroups(GJBaseGameLayer *a1) { cocos2d::CCDictionary *v1; // r14 unsigned int v2; // r15d __int64 v3; // rax intptr_t v4; // rsi __int64 v5; // r12 cocos2d::CCObject *v6; // rax cocos2d::CCObject *v7; // r13 cocos2d::CCDictElement *m_pElements; // r12 cocos2d::CCDictElement *v9; // rax cocos2d::CCObject *m_pObject; // r14 unsigned int v11; // r15d v1 = cocos2d::CCDictionary::create(); if ( (unsigned int)sub_100720070(a1->m_objects) ) { v2 = 0; do { v3 = sub_1007200C0(a1->m_objects, v2); v4 = *(int *)(v3 + 872); if ( v4 > 0 ) { v5 = v3; v6 = cocos2d::CCDictionary::objectForKey(v1, v4); if ( !v6 ) { v7 = (cocos2d::CCObject *)sub_10071F9E0(v1, v4); cocos2d::CCDictionary::setObject(v1, v7, *(int *)(v5 + 872)); v6 = v7; } sub_10071FCD0(v6, v5); } ++v2; } while ( v2 < (unsigned int)sub_100720070(a1->m_objects) ); } a1->m_lastUsedLinkedID = 0; if ( v1 ) { m_pElements = v1->m_pElements; while ( m_pElements ) { v9 = m_pElements; m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next; ++a1->m_lastUsedLinkedID; m_pObject = v9->m_pObject; if ( (unsigned int)sub_100720070(m_pObject) ) { v11 = 0; do *(_DWORD *)(sub_1007200C0(m_pObject, v11++) + 872) = a1->m_lastUsedLinkedID; while ( v11 < (unsigned int)sub_100720070(m_pObject) ); } cocos2d::CCDictionary::setObject(a1->m_linkedGroupDict, m_pObject, (unsigned int)a1->m_lastUsedLinkedID); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source