//
// EditorPauseLayer::onSaveAndPlay from 0x78e840 to 0x78e8c8 (136 bytes)
//
// 3 xrefs:
// > ??> @ 0x7b8d0
// > EditorPauseLayer::customSetup @ 0x78c450
// > ??> @ 0x122c220
//
// 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::onSaveAndPlay(EditorPauseLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCSequence *v3; // x20
cocos2d::CCFiniteTimeAction *v4; // x0
cocos2d::CCAction *v5; // x0
if ( !a1->m_saved )
{
a1->setKeypadEnabled(a1, 0);
a1->m_saved = 1;
EditorPauseLayer::saveLevel(a1);
v3 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.0);
v4 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, EditorPauseLayer::playStep2, 0);
v5 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v3, v4, 0);
cocos2d::CCNode::runAction(a1, v5);
}
}