// // SetupSmartBlockLayer::onClose from 0x1004e1530 to 0x1004e15dd (173 bytes) // // 6 xrefs: // > SetupSmartBlockLayer::onCreate @ 0x1004e16dc // > SetupSmartBlockLayer::onCreateTemplate @ 0x1004e176a // > SetupSmartBlockLayer::onPasteTemplate @ 0x1004e1a0f // > SetupSmartBlockLayer::keyBackClicked @ 0x1004e1f35 // > sub_1004E1F40 @ 0x1004e1f4c // > SetupSmartBlockLayer::init @ 0x1004e086b // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:31:18 +0000 // __int64 __fastcall SetupSmartBlockLayer::onClose(_QWORD *a1) { __int64 v2; // rax __int64 v3; // rax __int64 v4; // rdi __int64 v6; // rdi unsigned int v7; // r14d __int64 v8; // rax v2 = cocos2d::CCDirector::sharedDirector(); v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2); cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, (__int64)a1); v4 = a1[86]; if ( v4 ) { SmartGameObject::updateSmartFrame(v4); } else { v6 = a1[87]; if ( v6 && (unsigned int)sub_1007FEF90(v6) ) { v7 = 0; do { v8 = sub_1007FEFE0(a1[87], v7); SmartGameObject::updateSmartFrame(v8); ++v7; } while ( v7 < (unsigned int)sub_1007FEF90(a1[87]) ); } } (*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1072LL))(a1, 0); return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 528LL))(a1, 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source