// // EditorPauseLayer::onExport from 0x140182930 to 0x140182b30 (512 bytes) // // 3 xrefs: // > EditorPauseLayer::customSetup @ 0x140181a32 // > EditorPauseLayer::customSetup @ 0x140181ea7 // > @ 0x140918c68 // // 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=1 void __fastcall EditorPauseLayer::onExport(__int64 a1) { __int64 v2; // rax struct cocos2d::CCArray *v3; // rbx __int64 v4; // rcx __int64 v5; // rcx int v6; // eax __int64 v7; // rax cocos2d::CCObject *v8; // rbx __int64 v9; // rax __int128 v10; // [rsp+50h] [rbp+17h] BYREF __int64 v11; // [rsp+60h] [rbp+27h] __int64 v12; // [rsp+68h] [rbp+2Fh] _BYTE v13[32]; // [rsp+70h] [rbp+37h] BYREF if ( !*(_BYTE *)(a1 + 568) ) { v2 = LocalLevelManager::sharedState(a1); GManager::waitForSave(v2, 30.0); if ( *(_QWORD *)(a1 + 576) ) LevelEditorLayer::saveLevel(); v3 = cocos2d::CCArray::createWithObject(*(struct cocos2d::CCObject **)(*(_QWORD *)(a1 + 576) + 2168LL)); LocalLevelManager::sharedState(v4); v6 = LocalLevelManager::exportLevelsToFile(v5, v3); if ( v6 <= 0 ) { if ( v6 ) return; v10 = 0; v11 = 0; v12 = 0; *(_QWORD *)&v10 = sub_14003D460(0x20u); v11 = 23; v12 = 31; strcpy((char *)v10, "Failed to export level."); v9 = sub_14003F4F0((__int64)v13, (__int64)&v10); v8 = FLAlertLayer::create(0, (int)"Error", v9, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216); } else { v11 = 15; v12 = 15; strcpy((char *)&v10, "Level exported!"); v7 = sub_14003F4F0((__int64)v13, (__int64)&v10); v8 = FLAlertLayer::create(0, (int)"Exported", v7, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216); } sub_14003D310((__int64)&v10); (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v8 + 1064LL))(v8); } }