// // SetupSmartBlockLayer::onClose from 0x1004e6c30 to 0x1004e6cdd (173 bytes) // // 6 xrefs: // > SetupSmartBlockLayer::onCreate @ 0x1004e6ddc // > SetupSmartBlockLayer::onCreateTemplate @ 0x1004e6e6a // > SetupSmartBlockLayer::onPasteTemplate @ 0x1004e70f9 // > SetupSmartBlockLayer::keyBackClicked @ 0x1004e7625 // > sub_1004E7630 @ 0x1004e763c // > SetupSmartBlockLayer::init @ 0x1004e5f6b // // 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 SetupSmartBlockLayer::onClose(SetupSmartBlockLayer *a1, cocos2d::CCObject *a2) { cocos2d::CCDirector *v3; // rax cocos2d::CCTouchDispatcher *v4; // rax SmartGameObject *m_gameObject; // rdi cocos2d::CCArray *m_gameObjects; // rdi unsigned int v7; // r14d SmartGameObject *v8; // rax v3 = cocos2d::CCDirector::sharedDirector(); v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *, cocos2d::CCObject *))v3->getTouchDispatcher)( v3, a2); cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1); m_gameObject = a1->m_gameObject; if ( m_gameObject ) { SmartGameObject::updateSmartFrame(m_gameObject); } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) ) { v7 = 0; do { v8 = (SmartGameObject *)sub_1007200C0(a1->m_gameObjects, v7); SmartGameObject::updateSmartFrame(v8); ++v7; } while ( v7 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } } ((void (__fastcall *)(SetupSmartBlockLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0); ((void (__fastcall *)(SetupSmartBlockLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source