// // LevelInfoLayer::confirmOwnerDelete from 0x49af60 to 0x49b0ac (332 bytes) // // 0 xrefs: // // 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:45 +0000 // unsigned __int8 *__fastcall LevelInfoLayer::confirmOwnerDelete(unsigned __int8 *this, cocos2d::CCObject *a2) { unsigned __int8 *v2; // r6 int v3; // r4 GJAccountManager *v4; // r0 int v5; // r1 int v6; // r0 int v7; // r0 int *v8; // r0 char **v9; // r4 int v10[3]; // [sp+Ch] [bp-1Ch] BYREF int v11[3]; // [sp+18h] [bp-10h] BYREF v2 = this; v3 = *(this + 356); if ( !*(this + 356) ) { v4 = (GJAccountManager *)GameManager::sharedState((GameManager *)this); if ( *((_DWORD *)v4 + 116) - *((_DWORD *)v4 + 117) == *(_DWORD *)(*((_DWORD *)v2 + 91) + 404) - *(_DWORD *)(*((_DWORD *)v2 + 91) + 408) ) { v3 = 1; } else { v4 = (GJAccountManager *)GJAccountManager::sharedState(v4); if ( *((_DWORD *)v4 + 70) != *((_DWORD *)v4 + 71) ) { v4 = (GJAccountManager *)GJAccountManager::sharedState(v4); v5 = *((_DWORD *)v2 + 91); v3 = *((_DWORD *)v4 + 70) - *((_DWORD *)v4 + 71) + *(_DWORD *)(v5 + 420) + (*((_DWORD *)v4 + 70) - *((_DWORD *)v4 + 71) == *(_DWORD *)(v5 + 416) - *(_DWORD *)(v5 + 420)) + -*(_DWORD *)(v5 + 420) - (*((_DWORD *)v4 + 70) - *((_DWORD *)v4 + 71)); } } v6 = GameManager::sharedState(v4); if ( v3 || *(_DWORD *)(v6 + 820) - *(_DWORD *)(v6 + 824) <= 1 ) { memset(v10, 0, sizeof(v10)); std::string::__init( v10, "Do you want to delete this level from the server?\n" "(Your level will no longer be available online)", 0x81u); std::string::basic_string(v11, (int)v10); v9 = (char **)FLAlertLayer::create( (int)(v2 + 332), (cocos2d::CCLabelBMFont *)"Remove Server Level", (int)v11, (ButtonSprite *)"Cancel", (ButtonSprite *)"DELETE", 380.0); std::string::~string((int)v11); ButtonSprite::updateBGImage(v9[121], "GJ_button_06.png"); (*((void (__fastcall **)(char **, int))*v9 + 9))(v9, 5); (*((void (__fastcall **)(char **))*v9 + 164))(v9); v8 = v10; } else { std::string::basic_string(v11, *((_DWORD *)v2 + 91) + 280); v7 = AdminActionConfirmPopup::createContentDelete(v2 + 352, 5, "Remove Server Level", v11, 1); (*(void (__fastcall **)(int))(*(_DWORD *)v7 + 656))(v7); v8 = v11; } return (unsigned __int8 *)std::string::~string((int)v8); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source