//
// EditorPauseLayer::onSaveAndExit from 0x40163a to 0x401668 (46 bytes)
//
// 0 xrefs:
//
// 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 EditorPauseLayer::onSaveAndExit(EditorPauseLayer *a1, cocos2d::CCObject *a2)
{
_BOOL4 m_saved; // r5
m_saved = a1->m_saved;
if ( !a1->m_saved )
{
a1->setKeypadEnabled(a1, a1->m_saved);
a1->m_saved = 1;
EditorPauseLayer::saveLevel(a1);
EditorPauseLayer::onExitEditor(a1, (cocos2d::CCObject *)m_saved);
}
}