// // CollisionBlockPopup::onClose from 0x100286810 to 0x1002868e2 (210 bytes) // // 3 xrefs: // > CollisionBlockPopup::keyBackClicked @ 0x1002872c5 // > sub_1002872D0 @ 0x1002872dc // > CollisionBlockPopup::init @ 0x100285f49 // // 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 CollisionBlockPopup::onClose(CollisionBlockPopup *a1, cocos2d::CCObject *a2) { CCTextInputNode *m_blockIDInput; // rdi __int64 m_gameObjects; // r14 unsigned int v5; // r15d GameObject *v6; // rax m_blockIDInput = a1->m_blockIDInput; m_blockIDInput->m_delegate = nullptr; ((void (__fastcall *)(CCTextInputNode *, _QWORD))m_blockIDInput->onClickTrackNode)(m_blockIDInput, 0); if ( a1->m_gameObject ) { m_gameObjects = sub_10071F9E0(m_blockIDInput, 0); sub_10071FCD0(m_gameObjects, a1->m_gameObject); if ( !m_gameObjects ) goto LABEL_8; } else { m_gameObjects = (__int64)a1->m_gameObjects; if ( !m_gameObjects ) goto LABEL_8; } if ( (unsigned int)sub_100720070(m_gameObjects) ) { v5 = 0; do { v6 = (GameObject *)sub_1007200C0(m_gameObjects, v5); LevelEditorLayer::updateObjectLabel(v6); ++v5; } while ( v5 < (unsigned int)sub_100720070(m_gameObjects) ); } LABEL_8: GameManager::sharedState()->m_levelEditorLayer->m_unk3751 = 1; ((void (__fastcall *)(CollisionBlockPopup *, _QWORD))a1->setKeypadEnabled)(a1, 0); ((void (__fastcall *)(CollisionBlockPopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source