// // EditLevelLayer::onExportLevel from 0x7ee1e4 to 0x7ee3b0 (460 bytes) // // 3 xrefs: // > @ 0xeb8b8 // > EditLevelLayer::init @ 0x7f1080 // > @ 0x15471b0 // // 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:54:33 +0000 // __int64 __fastcall EditLevelLayer::onExportLevel(EditLevelLayer *this, cocos2d::CCObject *a2) { cocos2d::CCArray *v3; // x0 LocalLevelManager *v4; // x0 int v5; // w0 void (__fastcall *v6)(EditLevelLayer *, __int64, __int64); // x23 __int64 v7; // x0 __int64 v9; // x0 cocos2d::CCArray *v10; // [xsp+48h] [xbp+48h] __int64 v11[2]; // [xsp+58h] [xbp+58h] BYREF void *v12; // [xsp+68h] [xbp+68h] __int64 v13; // [xsp+70h] [xbp+70h] BYREF __int64 v14; // [xsp+78h] [xbp+78h] void *v15; // [xsp+80h] [xbp+80h] v3 = *((cocos2d::CCArray **)this + 59); if ( v3 ) { v10 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v3, _stack_chk_guard); v4 = (LocalLevelManager *)LocalLevelManager::sharedState(v10); v5 = LocalLevelManager::exportLevelsToFile(v4, v10); if ( v5 <= 0 ) { if ( !v5 ) { v13 = 0; v14 = 0; v15 = nullptr; std::string::__init(&v13, "Failed to export level.", 0x17u); v9 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Error", (char *)&v13, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9); if ( (v13 & 1) != 0 ) operator delete(v15); } } else { v6 = *(void (__fastcall **)(EditLevelLayer *, __int64, __int64))(*(_QWORD *)this + 464LL); v11[0] = 0; v11[1] = 0; v12 = nullptr; std::string::__init(v11, "Level exported!", 0xFu); v13 = 0; v14 = 0; v15 = nullptr; std::string::__init(&v13, &byte_11B8890, 0); v7 = TextAlertPopup::create(v11, 150, &v13, 0.5, 0.6); v6(this, v7, 100); if ( (v13 & 1) != 0 ) operator delete(v15); if ( (v11[0] & 1) != 0 ) operator delete(v12); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source