// // EditorPauseLayer::onSaveAndPlay from 0x140182590 to 0x140182621 (145 bytes) // // 4 xrefs: // > EditorPauseLayer::customSetup @ 0x1401816a0 // > @ 0x14089e3a0 // > @ 0x14089e3b0 // > @ 0x140918c20 // // 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 // void __fastcall EditorPauseLayer::onSaveAndPlay(_BYTE *a1) { __int64 v2; // rcx __int64 v3; // rax __int64 v4; // rbx struct cocos2d::CCFiniteTimeAction *v5; // rax struct cocos2d::CCAction *v6; // rax if ( !a1[568] ) { (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0); a1[568] = 1; v3 = LocalLevelManager::sharedState(v2); GManager::waitForSave(v3, 30.0); if ( *((_QWORD *)a1 + 72) ) LevelEditorLayer::saveLevel(); v4 = cocos2d::CCCallFunc::create(a1, EditorPauseLayer::playStep2); v5 = cocos2d::CCDelayTime::create(0.0); v6 = cocos2d::CCSequence::create(v5, v4, 0); cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v6); } }