// // GJBaseGameLayer::removeObjectFromSection from 0x140226d60 to 0x140226f97 (567 bytes) // // 39 xrefs: // > EditorUI::onDeleteSelected @ 0x1400e6546 // > EditorUI::onDeleteSelected @ 0x1400e67cf // > EditorUI::FLAlert_Clicked @ 0x1400e6bb1 // > EditorUI::spriteFromObjectString @ 0x14010e1a7 // > EditorUI::spriteFromObjectString @ 0x14010e273 // > EditorUI::spriteFromObjectString @ 0x14010e330 // > EditorUI::onPlaytest @ 0x1401121c4 // > EditorUI::onPlaytest @ 0x1401121d3 // > EditorUI::addObjectsToSmartTemplate @ 0x140116ae1 // > EditorUI::createSmartObjectsFromTemplate @ 0x1401177bc // > EditorUI::deleteSmartBlocksFromObjects @ 0x140117e68 // > EditorUI::createSmartObjectsFromType @ 0x14011835c // > EditorUI::moveObject @ 0x14011fd97 // > EditorUI::moveObject @ 0x14011fe38 // > EditorUI::removeOffset @ 0x1401228ce // > EditorUI::applyOffset @ 0x14012295e // > GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x14021869a // > GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x140218789 // > GJBaseGameLayer::addUIObject @ 0x140225fb9 // > GJBaseGameLayer::updateObjectSection @ 0x140227ff5 // > LevelEditorLayer::init @ 0x1402d2925 // > LevelEditorLayer::init @ 0x1402d2934 // > LevelEditorLayer::removeObject @ 0x1402d628b // > LevelEditorLayer::removeAllObjectsOfType @ 0x1402d6509 // > LevelEditorLayer::handleAction @ 0x1402d6667 // > LevelEditorLayer::handleAction @ 0x1402d66d4 // > LevelEditorLayer::handleAction @ 0x1402d682a // > LevelEditorLayer::handleAction @ 0x1402d6952 // > LevelEditorLayer::updateObjectSection @ 0x1402df9ee // > LevelEditorLayer::onStopPlaytest @ 0x1402e088a // > LevelEditorLayer::onStopPlaytest @ 0x1402e0899 // > PlayLayer::checkForEnd @ 0x1403b4dbc // > PlayLayer::storeCheckpoint @ 0x1403b750f // > PlayLayer::removeCheckpoint @ 0x1403b7f53 // > PlayLayer::resetLevel @ 0x1403b91b7 // > PlayLayer::resetLevel @ 0x1403b936b // > SetupObjectOptionsPopup::onDisableObject @ 0x1403fff1d // > SetupObjectOptionsPopup::onExtendedCollision @ 0x140400801 // > SetupObjectOptionsPopup::onExtendedCollision @ 0x140400858 // // 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::removeObjectFromSection(GJBaseGameLayer *a1, GameObject *a2) { __int64 m_outerSectionIndex; // rax __int64 m_middleSectionIndex; // r8 std::_Simple_types *>::value_type v6; // r9 std::_Vector_val>::pointer Myfirst; // rax __int64 v8; // rdx __int64 m_calcCollisionBlockObjectsSize; // rcx __int64 m_innerSectionIndex; // rdx std::_Simple_types::value_type v11; // rcx __int64 v12; // r8 __int64 v13; // rdx std::_Simple_types::value_type v14; // r9 std::_Vector_val>::pointer v15; // rax __int64 v16; // rdx __int64 m_calcNonEffectObjectsSize; // rcx __int64 v18; // r8 __int64 v19; // rdx std::_Simple_types *>::value_type v20; // r9 std::_Vector_val>::pointer v21; // rax __int64 v22; // rdx std::_Simple_types::value_type *v23; // rcx m_outerSectionIndex = a2->m_outerSectionIndex; if ( (int)m_outerSectionIndex >= 0 ) { m_middleSectionIndex = a2->m_middleSectionIndex; v6 = a1->m_sections._Mypair._Myval2._Myfirst[m_outerSectionIndex]->_Mypair._Myval2._Myfirst[m_middleSectionIndex]; Myfirst = a1->m_sectionSizes._Mypair._Myval2._Myfirst[m_outerSectionIndex]->_Mypair._Myval2._Myfirst; v8 = Myfirst[m_middleSectionIndex]; Myfirst[m_middleSectionIndex] = v8 - 1; v6->_Mypair._Myval2._Myfirst[a2->m_someOtherIndex] = v6->_Mypair._Myval2._Myfirst[v8 - 1]; v6->_Mypair._Myval2._Myfirst[a2->m_someOtherIndex]->m_someOtherIndex = a2->m_someOtherIndex; if ( a2->m_objectID == 1816 ) { if ( a2->m_hasExtendedCollision ) { m_calcCollisionBlockObjectsSize = a1->m_calcCollisionBlockObjectsSize; a1->m_calcCollisionBlockObjectsSize = m_calcCollisionBlockObjectsSize - 1; a1->m_calcCollisionBlockObjects._Mypair._Myval2._Myfirst[a2->m_innerSectionIndex] = a1->m_calcCollisionBlockObjects._Mypair._Myval2._Myfirst[m_calcCollisionBlockObjectsSize - 1]; m_innerSectionIndex = a2->m_innerSectionIndex; v11 = a1->m_calcCollisionBlockObjects._Mypair._Myval2._Myfirst[m_innerSectionIndex]; } else { v12 = a2->m_middleSectionIndex; v13 = a2->m_outerSectionIndex; v14 = a1->m_collisionBlockSections._Mypair._Myval2._Myfirst[v13]->_Mypair._Myval2._Myfirst[v12]; v15 = a1->m_collisionBlockSectionSizes._Mypair._Myval2._Myfirst[v13]->_Mypair._Myval2._Myfirst; v16 = v15[v12]; v15[v12] = v16 - 1; *((_QWORD *)&v14->copyWithZone + a2->m_innerSectionIndex) = *((_QWORD *)v14->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v16 - 1); m_innerSectionIndex = a2->m_innerSectionIndex; v11 = *((std::_Simple_types::value_type *)&v14->copyWithZone + m_innerSectionIndex); } v11->m_innerSectionIndex = m_innerSectionIndex; } else if ( a2->m_objectType != Decoration ) { if ( a2->m_hasExtendedCollision ) { m_calcNonEffectObjectsSize = a1->m_calcNonEffectObjectsSize; a1->m_calcNonEffectObjectsSize = m_calcNonEffectObjectsSize - 1; a1->m_calcNonEffectObjects._Mypair._Myval2._Myfirst[a2->m_innerSectionIndex] = a1->m_calcNonEffectObjects._Mypair._Myval2._Myfirst[m_calcNonEffectObjectsSize - 1]; a1->m_calcNonEffectObjects._Mypair._Myval2._Myfirst[a2->m_innerSectionIndex]->m_innerSectionIndex = a2->m_innerSectionIndex; } else { v18 = a2->m_middleSectionIndex; v19 = a2->m_outerSectionIndex; v20 = a1->m_nonEffectObjects._Mypair._Myval2._Myfirst[v19]->_Mypair._Myval2._Myfirst[v18]; v21 = a1->m_nonEffectObjectsSizes._Mypair._Myval2._Myfirst[v19]->_Mypair._Myval2._Myfirst; v22 = v21[v18]; v21[v18] = v22 - 1; v20->_Mypair._Myval2._Myfirst[a2->m_innerSectionIndex] = v20->_Mypair._Myval2._Myfirst[v22 - 1]; v20->_Mypair._Myval2._Myfirst[a2->m_innerSectionIndex]->m_innerSectionIndex = a2->m_innerSectionIndex; v23 = &a1->m_nonEffectObjectsFlags._Mypair._Myval2._Myfirst[a2->m_outerSectionIndex]->_Myvec._Mypair._Myval2._Myfirst[(unsigned __int64)a2->m_middleSectionIndex >> 5]; *v23 |= 1 << (a2->m_middleSectionIndex & 0x1F); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source