// // EditorPauseLayer::onExitEditor from 0x1400de2a0 to 0x1400de36e (206 bytes) // // 4 xrefs: // > EditorPauseLayer::onSaveAndExit @ 0x1400de294 // > EditorPauseLayer::onExitNoSave @ 0x1400de3a5 // > EditorPauseLayer::FLAlert_Clicked @ 0x1400de522 // > @ 0x1406c8a90 // // 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 // // Hidden C++ exception states: #wind=2 void EditorPauseLayer::onExitEditor(EditorPauseLayer *a1, cocos2d::CCObject *a2) { FMODAudioEngine *v3; // rcx __int64 v4; // rcx __int64 v5; // rax cocos2d::CCTouchDispatcher *v6; // rax GameManager *v7; // rcx FMODAudioEngine *v8; // [rsp+38h] [rbp+10h] void *v9; // [rsp+38h] [rbp+10h] v3 = (FMODAudioEngine *)qword_1406C2E88; if ( !qword_1406C2E88 ) { v8 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v8); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v3 = (FMODAudioEngine *)qword_1406C2E88; } FMODAudioEngine::unloadAllEffects(v3); if ( a1->m_forcePrioRegistered ) { a1->m_forcePrioRegistered = 0; v5 = cocos2d::CCDirector::sharedDirector(v4); v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5); cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1); } v7 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v9 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v9); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v7 = (GameManager *)qword_1406C2ED8; } GameManager::returnToLastScene(v7, a1->m_editorLayer->m_level); }