// // LevelEditorLayer::removeFromGroup from 0x1402deb60 to 0x1402decac (332 bytes) // // 4 xrefs: // > @ 0x140586388 // > @ 0x14068ebac // > @ 0x14068ebbc // > @ 0x1406d34a0 // // 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 LevelEditorLayer::removeFromGroup(LevelEditorLayer *a1, GameObject *a2, int a3) { __int64 v3; // rbp cocos2d::CCArray *Group; // rax int v7; // eax __int64 v8; // r14 std::_Simple_types::value_type v9; // rsi std::_Vector_val>::pointer Myfirst; // rax cocos2d::CCArray *TriggerGroup; // rax v3 = a3; Group = GJBaseGameLayer::getGroup(a1, a3); cocos2d::CCArray::removeObject(Group, a2, 1); v7 = v3; if ( a2->m_isDecoration2 ) { if ( (int)v3 > 9999 ) v7 = 9999; if ( v7 < 0 ) v7 = 0; v8 = (unsigned int)v7; v9 = a1->m_optimizedGroups._Mypair._Myval2._Myfirst[v7]; if ( !v9 ) { v9 = (std::_Simple_types::value_type)cocos2d::CCArray::create(0); cocos2d::CCDictionary::setObject(a1->m_optimizedGroupDict, v9, (unsigned int)v8); Myfirst = a1->m_optimizedGroups._Mypair._Myval2._Myfirst; LABEL_14: Myfirst[v8] = v9; } } else { if ( (int)v3 > 9999 ) v7 = 9999; if ( v7 < 0 ) v7 = 0; v8 = (unsigned int)v7; v9 = a1->m_staticGroups._Mypair._Myval2._Myfirst[v7]; if ( !v9 ) { v9 = (std::_Simple_types::value_type)cocos2d::CCArray::create(0); cocos2d::CCDictionary::setObject(a1->m_staticGroupDict, v9, (unsigned int)v8); Myfirst = a1->m_staticGroups._Mypair._Myval2._Myfirst; goto LABEL_14; } } cocos2d::CCArray::removeObject(v9, a2, 1); if ( a2->m_hasGroupParentsString && a2 == cocos2d::CCDictionary::objectForKey(a1->m_parentGroupsDict, v3) ) GJBaseGameLayer::removeGroupParent(a1, v3); if ( a2->m_isSpawnOrderTrigger ) { TriggerGroup = LevelEditorLayer::getTriggerGroup(a1, v3); cocos2d::CCArray::removeObject(TriggerGroup, a2, 1); } a1->m_unk3b22 = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source