// // EditorUI::setIDPopupClosed from 0x488200 to 0x488316 (278 bytes) // // 1 xrefs: // > `non-virtual thunk to'EditorUI::setIDPopupClosed @ 0x488330 // // 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:27 +0000 // int __fastcall EditorUI::setIDPopupClosed(EditorUI *this, SetIDPopup *a2, char *a3) { GameManager *v6; // r0 int v7; // r3 int v8; // r4 cocos2d::CCString *v9; // r0 char *CString; // r0 int result; // r0 GameManager *v12; // r0 int v13; // r3 int v14; // r1 const char *v15; // r6 size_t v16; // r0 int v17; // r0 int v18; // r1 char *v19; // r2 char *v20; // r1 int v21; // [sp+4h] [bp-1Ch] BYREF int v22; // [sp+8h] [bp-18h] char *v23; // [sp+Ch] [bp-14h] int v24; // [sp+10h] [bp-10h] BYREF int v25; // [sp+14h] [bp-Ch] char *v26; // [sp+18h] [bp-8h] if ( (*(int (__fastcall **)(SetIDPopup *))(*(_DWORD *)a2 + 32))(a2) == 1 ) { v6 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 1)); GameManager::setIntGameVariable(v6, "0133", a3, v7); v8 = *((_DWORD *)this + 219); v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a3); CString = (char *)cocos2d::CCString::getCString(v9); return ButtonSprite::setString(v8, CString); } else { result = (*(int (__fastcall **)(SetIDPopup *))(*(_DWORD *)a2 + 32))(a2); if ( result == 2 ) { v12 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 2)); GameManager::setIntGameVariable(v12, "0139", a3, v13); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, &unk_B6B226, 0); if ( (int)a3 < 1000 ) { GameToolbox::intToString((GameToolbox *)&v24, (int)a3); if ( (v21 & 1) != 0 ) { *v23 = 0; v22 = 0; } else { LOWORD(v21) = 0; } std::string::reserve(&v21, 0); v17 = v24; v18 = v25; v19 = v26; v24 = 0; v25 = 0; v26 = nullptr; v21 = v17; v22 = v18; v23 = v19; std::string::~string((int)&v24); } else { v15 = (const char *)GJSpecialColorSelect::textForColorIdx((GJSpecialColorSelect *)a3, v14); v16 = strlen(v15); std::string::assign(&v21, v15, v16); } if ( (v21 & 1) != 0 ) v20 = v23; else v20 = (char *)&v21 + 1; ButtonSprite::setString(*((_DWORD *)this + 220), v20); return std::string::~string((int)&v21); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source