// // LevelEditorLayer::recreateGroups from 0x1000f0db0 to 0x1000f1098 (744 bytes) // // 3 xrefs: // > EditorUI::dynamicGroupUpdate @ 0x100044f38 // > LevelEditorLayer::onPlaytest @ 0x1000f2742 // > LevelEditorLayer::onResumePlaytest @ 0x1000f2d30 // // 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 LevelEditorLayer::recreateGroups(LevelEditorLayer *a1) { std::__hash_node_base>, void *> *>::__next_pointer next; // r14 unsigned __int64 value; // rsi std::__hash_node_base>, void *> *>::__next_pointer v4; // r14 unsigned __int64 v5; // rsi __int64 i; // r14 cocos2d::CCArray *v7; // rdi cocos2d::CCArray *v8; // rdi cocos2d::CCArray *v9; // rdi std::__hash_node_base>, void *> *> *v10; // r15 std::__hash_node_base>, void *> *> *v11; // rdi std::__hash_node_base>, void *> *> *v12; // r15 std::__hash_node_base>, void *> *> *v13; // rdi cocos2d::CCDictionary *m_triggerGroupsDict; // rax cocos2d::CCDictElement *m_pElements; // r14 cocos2d::CCObject *m_pObject; // rdi cocos2d::CCArray *m_objects; // r14 unsigned int v18; // r15d LabelGameObject *v19; // r12 int v20; // r13d unsigned int GroupID; // eax int m_objectID; // eax GJBaseGameLayer::resetMoveOptimizedValue(a1); if ( a1->m_labelObjects.__table_.__p2_.__value_ ) { next = a1->m_labelObjects.__table_.__p1_.__value_.__next_; if ( next ) { do { v10 = next->__next_; v11 = next[3].__next_; if ( v11 ) { next[4].__next_ = v11; operator delete(v11); } operator delete(next); next = v10; } while ( v10 ); } a1->m_labelObjects.__table_.__p1_.__value_.__next_ = nullptr; value = a1->m_labelObjects.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_; if ( value ) __bzero(a1->m_labelObjects.__table_.__bucket_list_.__ptr_.__value_, 8 * value); a1->m_labelObjects.__table_.__p2_.__value_ = 0; } if ( a1->m_timeLabelObjects.__table_.__p2_.__value_ ) { v4 = a1->m_timeLabelObjects.__table_.__p1_.__value_.__next_; if ( v4 ) { do { v12 = v4->__next_; v13 = v4[3].__next_; if ( v13 ) { v4[4].__next_ = v13; operator delete(v13); } operator delete(v4); v4 = v12; } while ( v12 ); } a1->m_timeLabelObjects.__table_.__p1_.__value_.__next_ = nullptr; v5 = a1->m_timeLabelObjects.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_; if ( v5 ) __bzero(a1->m_timeLabelObjects.__table_.__bucket_list_.__ptr_.__value_, 8 * v5); a1->m_timeLabelObjects.__table_.__p2_.__value_ = 0; } sub_100720270(a1->m_collisionBlocks); sub_10071FCD0(a1->m_collisionBlocks, a1->m_player1CollisionBlock); sub_10071FCD0(a1->m_collisionBlocks, a1->m_player2CollisionBlock); for ( i = 0; i != 10000; ++i ) { v7 = a1->m_groups.__begin_[i]; if ( v7 ) sub_100720270(v7); v8 = a1->m_staticGroups.__begin_[i]; if ( v8 ) sub_100720270(v8); v9 = a1->m_optimizedGroups.__begin_[i]; if ( v9 ) sub_100720270(v9); } m_triggerGroupsDict = a1->m_triggerGroupsDict; if ( m_triggerGroupsDict ) { m_pElements = m_triggerGroupsDict->m_pElements; while ( m_pElements ) { m_pObject = m_pElements->m_pObject; m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next; sub_100720270(m_pObject); } } m_objects = a1->m_objects; if ( (unsigned int)sub_100720070(m_objects) ) { v18 = 0; do { v19 = (LabelGameObject *)sub_1007200C0(m_objects, v18); if ( v19->m_groupCount > 0 ) { v20 = 0; do { GroupID = GameObject::getGroupID(v19, v20); ((void (__fastcall *)(LevelEditorLayer *, LabelGameObject *, _QWORD, __int64))a1->addToGroup)( a1, v19, GroupID, 1); ++v20; } while ( v20 < v19->m_groupCount ); } m_objectID = v19->m_objectID; if ( m_objectID == 1816 ) { if ( v19->m_isDynamicBlock ) sub_10071FCD0(a1->m_collisionBlocks, v19); } else if ( m_objectID == 1615 ) { GJBaseGameLayer::addObjectCounter(a1, v19); } ++v18; } while ( v18 < (unsigned int)sub_100720070(m_objects) ); } if ( a1->m_levelSettings->m_sortGroups ) GJBaseGameLayer::sortAllGroupsX(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source