// // EditorPauseLayer::FLAlert_Clicked from 0x8b6fd4 to 0x8b71cc (504 bytes) // // 3 xrefs: // > `non-virtual thunk to'EditorPauseLayer::FLAlert_Clicked @ 0x8b71d4 // > @ 0x61780 // > @ 0x1459c70 // // This function is hookable on this platform (idp: arm, 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 12:56:25 +0000 // __int64 __fastcall EditorPauseLayer::FLAlert_Clicked(LevelEditorLayer **this, FLAlertLayer *a2, unsigned __int8 a3) { int v5; // w21 GameManager *v7; // x0 GameManager *v8; // x0 cocos2d::CCObject *v9; // x1 LocalLevelManager *v10; // x0 int v11; // w0 __int64 v12; // x0 __int64 v13; // x0 cocos2d::CCArray *v14; // [xsp+38h] [xbp+38h] __int64 v15; // [xsp+40h] [xbp+40h] BYREF __int64 v16; // [xsp+48h] [xbp+48h] void *v17; // [xsp+50h] [xbp+50h] v5 = a3; if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 1 && v5 ) { EditorPauseLayer::onExitEditor(this, nullptr); } else if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 3 && v5 ) { EditorPauseLayer::saveLevel(this); } else { v7 = (GameManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)v7 == 4 && v5 ) { v8 = (GameManager *)GameManager::sharedState(v7); GameManager::openEditorGuide(v8); } else if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 5 && v5 ) { EditorPauseLayer::saveLevel(this); v14 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(*((cocos2d::CCArray **)*(this + 72) + 242), v9); v10 = (LocalLevelManager *)LocalLevelManager::sharedState(v14); v11 = LocalLevelManager::exportLevelsToFile(v10, v14); if ( v11 <= 0 ) { if ( v11 ) return _stack_chk_guard; v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Failed to export level.", 0x17u); v13 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"Error", (char *)&v15, (ButtonSprite *)"OK", nullptr, 300.0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 1312LL))(v13); } else { v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "Level exported!", 0xFu); v12 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"Exported", (char *)&v15, (ButtonSprite *)"OK", nullptr, 300.0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 1312LL))(v12); } if ( (v15 & 1) != 0 ) operator delete(v17); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source