// // GJBaseGameLayer::assignNewStickyGroups from 0x4731f0 to 0x47328e (158 bytes) // // 2 xrefs: // > LevelEditorLayer::duplicateKeyframeAnimation @ 0x371370 // > EditorUI::pasteObjects @ 0x3a3798 // // 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 GJBaseGameLayer::assignNewStickyGroups(GJBaseGameLayer *a1, cocos2d::CCArray *a2) { unsigned int v4; // r5 cocos2d::CCDictionary *v5; // r4 cocos2d::CCObject *v6; // r6 cocos2d::CCArray *v7; // r7 cocos2d::CCDictElement *m_pElements; // r3 cocos2d::CCDictElement *next; // r4 cocos2d::CCArray *m_pObject; // r5 cocos2d::CCDictElement *v11; // r2 if ( a2 ) { v4 = 0; v5 = nullptr; while ( v4 < cocos2d::CCArray::count(a2) ) { v6 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a2, v4); if ( (int)v6[14].m_uID > 0 ) { if ( !v5 ) v5 = cocos2d::CCDictionary::create(); v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v5, v6[14].m_uID); if ( !v7 ) { v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(nullptr); cocos2d::CCDictionary::setObject(v5, v7, v6[14].m_uID); } cocos2d::CCArray::addObject(v7, v6); } ++v4; } if ( v5 ) { m_pElements = v5->m_pElements; if ( m_pElements ) next = (cocos2d::CCDictElement *)m_pElements->hh.next; else next = nullptr; while ( m_pElements ) { m_pObject = (cocos2d::CCArray *)m_pElements->m_pObject; GJBaseGameLayer::ungroupStickyObjects(a1, m_pObject); GJBaseGameLayer::groupStickyObjects(a1, m_pObject); if ( next ) v11 = (cocos2d::CCDictElement *)next->hh.next; else v11 = nullptr; m_pElements = next; next = v11; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source