// // EndLevelLayer::onRestartCheckpoint from 0x1002f74a0 to 0x1002f75d0 (304 bytes) // // 1 xrefs: // > EndLevelLayer::customSetup @ 0x1002f6650 // // 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 EndLevelLayer::onRestartCheckpoint(EndLevelLayer *a1, cocos2d::CCObject *a2) { GameManager *v3; // x0 FMODAudioEngine *v4; // x0 FMODAudioEngine *v5; // x20 cocos2d::CCDelayTime *v6; // x20 char v7; // w0 __int64 v8; // x1 __int64 v9; // x2 __int64 v10; // x3 __int64 v11; // x4 __int64 v12; // x5 __int64 v13; // x6 __int64 v14; // x7 cocos2d::CCSequence *v15; // x20 void *__p[2]; // [xsp+18h] [xbp-28h] BYREF char v17; // [xsp+2Fh] [xbp-11h] cocos2d::SEL_CallFunc v18; // 0:x1.16 if ( !a1->m_exiting ) { a1->m_exiting = 1; v3 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v3, "0024") ) PlatformToolbox::hideCursor(); v4 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::clearAllAudio(v4); v5 = FMODAudioEngine::sharedEngine(); sub_100009900(__p, "playSound_01.ogg"); FMODAudioEngine::playEffect((__int64)v5, (__int64)__p, 1.0, 0.0, 0.3); if ( v17 < 0 ) operator delete(__p[0]); ((void (__fastcall *)(EndLevelLayer *, _QWORD))a1->exitLayer)(a1, 0); ((void (__fastcall *)(EndLevelLayer *, _QWORD))a1->setTouchEnabled)(a1, 0); ((void (__fastcall *)(EndLevelLayer *, _QWORD))a1->setKeyboardEnabled)(a1, 0); ((void (__fastcall *)(EndLevelLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0); v6 = cocos2d::CCDelayTime::create(0.5); v18.ptr = (void (*)(void))1560; v18.adj = 1; v7 = (unsigned __int8)cocos2d::CCCallFunc::create(a1->m_playLayer, v18); v15 = sub_10018A494(v6, v8, v9, v10, v11, v12, v13, v14, v7); ((void (__fastcall *)(cocos2d::CCSequence *, __int64))v15->setTag)(v15, 16); cocos2d::CCNode::runAction(a1->m_playLayer, v15); } }