// // EditorPauseLayer::onExitEditor from 0x140182b90 to 0x140182c7e (238 bytes) // // 4 xrefs: // > EditorPauseLayer::onSaveAndExit @ 0x140182b82 // > EditorPauseLayer::onExitNoSave @ 0x140182cb5 // > EditorPauseLayer::FLAlert_Clicked @ 0x140182e32 // > @ 0x140918c80 // // 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 11:27:37 +0000 // // Hidden C++ exception states: #wind=2 __int64 __fastcall EditorPauseLayer::onExitEditor(__int64 a1) { __int64 v2; // rax _QWORD *v3; // rcx __int64 v4; // rcx __int64 v5; // rax cocos2d::CCTouchDispatcher *v6; // rax __int64 v7; // rcx void *v9; // [rsp+38h] [rbp+10h] void *v10; // [rsp+38h] [rbp+10h] v2 = EditorSFXManager::sharedState(); EditorSFXManager::playAction(v2, 224); LevelEditorLayer::waitForAutoSave(); v3 = (_QWORD *)qword_14090BF60; if ( !qword_14090BF60 ) { v9 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v9); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v3 = (_QWORD *)qword_14090BF60; } FMODAudioEngine::unloadAllEffects(v3); if ( *(_BYTE *)(a1 + 545) ) { *(_BYTE *)(a1 + 545) = 0; v5 = cocos2d::CCDirector::sharedDirector(v4); v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5); cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, (struct cocos2d::CCObject *)a1); } v7 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v10 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v7 = qword_14090BFD0; } return GameManager::returnToLastScene(v7, *(_QWORD *)(*(_QWORD *)(a1 + 576) + 2168LL)); }