// // EditLevelLayer::FLAlert_Clicked from 0x4a2158 to 0x4a22de (390 bytes) // // 1 xrefs: // > `non-virtual thunk to'EditLevelLayer::FLAlert_Clicked @ 0x4a22ec // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:49:51 +0000 // int __fastcall EditLevelLayer::FLAlert_Clicked(GJGameLevel **this, FLAlertLayer *a2, int a3, int a4) { int result; // r0 GameManager *v8; // r0 EditLevelLayer *v9; // r0 GameLevelManager *v10; // r0 GameLevelManager *v11; // r0 int v12; // r0 int v13; // r6 int v14; // r8 int updated; // r6 int v16; // r2 GJGameLevel **v17; // [sp+0h] [bp-10h] BYREF FLAlertLayer *v18; // [sp+4h] [bp-Ch] int v19; // [sp+8h] [bp-8h] int v20; // [sp+Ch] [bp-4h] v17 = this; v18 = a2; v19 = a3; v20 = a4; if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 4 && a3 ) return EditLevelLayer::onDelete((EditLevelLayer *)this); if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 7 && a3 ) return EditLevelLayer::onClone(this); if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 8 && a3 ) return EditLevelLayer::onMoveToTop(this); if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 12 && a3 ) return EditLevelLayer::onMoveToBottom(this); if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 10 ) return EditLevelLayer::onShare(this, nullptr); if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 5 ) { if ( a3 ) { v8 = (GameManager *)GameManager::sharedState((GameManager *)&byte_5); return GameManager::openEditorGuide(v8); } else { return EditLevelLayer::onEdit(this, nullptr); } } else if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 9 && a3 ) { v10 = (GameLevelManager *)EditLevelLayer::closeTextInputs(this); v11 = (GameLevelManager *)GameLevelManager::sharedState(v10); *((_DWORD *)v11 + 222) = this + 81; v12 = GameLevelManager::sharedState(v11); v13 = *((_DWORD *)*(this + 87) + 67) - *((_DWORD *)*(this + 87) + 68); v14 = v12; std::string::basic_string((int *)&v17, (int)*(this + 87) + 292); updated = GameLevelManager::updateDescription(v14, v13, &v17); result = std::string::~string((int)&v17); if ( updated ) { v16 = (int)*(this + 95); if ( v16 ) { *(_DWORD *)(v16 + 520) = 0; *(this + 95) = nullptr; } v17 = nullptr; v18 = nullptr; v19 = 0; std::string::__init((int *)&v17, "Updating description...", 0x17u); *(this + 95) = (GJGameLevel *)UploadActionPopup::create(this + 82, &v17); std::string::~string((int)&v17); return (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 95) + 656))(*(this + 95)); } } else { result = (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2); if ( result == 11 ) { if ( a3 ) { v9 = (EditLevelLayer *)this; *((_BYTE *)this + 384) = 1; } else { GJGameLevel::clearPlatformerSave(*(this + 87)); v9 = (EditLevelLayer *)this; } return EditLevelLayer::onPlay(v9, nullptr); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source