//
// EditorPauseLayer::onSaveAndExit from 0x100293870 to 0x1002938d3 (99 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::customSetup @ 0x100291b2c
//
// 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 EditorPauseLayer::onSaveAndExit(EditorPauseLayer *a1, cocos2d::CCObject *a2)
{
FMODAudioEngine *v2; // rax
GameManager *v3; // rax
if ( !a1->m_saved )
{
((void (__fastcall *)(EditorPauseLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
a1->m_saved = 1;
EditorPauseLayer::saveLevel(a1);
v2 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::unloadAllEffects(v2);
CCBlockLayer::decrementForcePrio(a1);
v3 = GameManager::sharedState();
GameManager::returnToLastScene(v3, a1->m_editorLayer->m_level);
}
}