// // GJBaseGameLayer::assignNewStickyGroups from 0x140224d40 to 0x140224e54 (276 bytes) // // 5 xrefs: // > EditorUI::pasteObjects @ 0x140114268 // > LevelEditorLayer::duplicateKeyframeAnimation @ 0x1402e1a7a // > @ 0x140680150 // > @ 0x140680188 // > @ 0x1406cd7ac // // 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) { cocos2d::CCDictionary *v3; // rbx unsigned int v4; // edi __int64 v6; // rcx struct cocos2d::CCObject *v7; // rbp __int64 v8; // rcx cocos2d::CCArray *v9; // rsi cocos2d::CCDictElement *m_pElements; // rbx cocos2d::CCDictElement *i; // rdi cocos2d::CCArray *m_pObject; // rbx if ( a2 ) { v3 = nullptr; v4 = 0; if ( cocos2d::CCArray::count(a2) ) { do { v7 = cocos2d::CCArray::objectAtIndex(a2, v4); if ( v7[15].m_unknown2 > 0 ) { if ( !v3 ) v3 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v6); v9 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v3, v7[15].m_unknown2); if ( !v9 ) { v9 = (cocos2d::CCArray *)cocos2d::CCArray::create(v8); cocos2d::CCDictionary::setObject(v3, v9, v7[15].m_unknown2); } cocos2d::CCArray::addObject(v9, v7); } ++v4; } while ( v4 < cocos2d::CCArray::count(a2) ); if ( v3 ) { m_pElements = v3->m_pElements; if ( m_pElements ) { for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next ) { m_pObject = (cocos2d::CCArray *)m_pElements->m_pObject; GJBaseGameLayer::ungroupStickyObjects(a1, m_pObject); GJBaseGameLayer::groupStickyObjects(a1, m_pObject); m_pElements = i; if ( !i ) break; } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source