// // EditorUI::setIDPopupClosed from 0x7cbac4 to 0x7cbc7c (440 bytes) // // 3 xrefs: // > `non-virtual thunk to'EditorUI::setIDPopupClosed @ 0x7cbc80 // > @ 0xa1e00 // > @ 0x14371f8 // // 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:11 +0000 // __int64 __fastcall EditorUI::setIDPopupClosed(EditorUI *this, SetIDPopup *a2, unsigned int a3) { GameManager *v5; // x0 GameManager *v6; // x0 GameManager *v8; // x0 ButtonSprite *v9; // x21 cocos2d::CCString *v10; // x0 const char *CString; // x0 GameManager *v12; // x0 int v13; // w1 size_t v14; // x0 char *v15; // x1 const char *v17; // [xsp+38h] [xbp+38h] unsigned __int64 v18; // [xsp+48h] [xbp+48h] BYREF unsigned __int64 v19; // [xsp+50h] [xbp+50h] char *v20; // [xsp+58h] [xbp+58h] unsigned __int64 v21[3]; // [xsp+60h] [xbp+60h] BYREF v5 = (GameManager *)(*(__int64 (__fastcall **)(SetIDPopup *))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)v5 == 1 ) { v8 = (GameManager *)GameManager::sharedState(v5); GameManager::setIntGameVariable(v8, "0133", a3); v9 = *((ButtonSprite **)this + 164); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a3); CString = (const char *)cocos2d::CCString::getCString(v10); ButtonSprite::setString(v9, CString); } else { v6 = (GameManager *)(*(__int64 (__fastcall **)(SetIDPopup *))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)v6 == 2 ) { v12 = (GameManager *)GameManager::sharedState(v6); GameManager::setIntGameVariable(v12, "0139", a3); v18 = 0; v19 = 0; v20 = nullptr; std::string::__init((__int64 *)&v18, &byte_11B8890, 0); if ( (int)a3 <= 999 ) { GameToolbox::intToString(v21, (GameToolbox *)a3); if ( (v18 & 1) != 0 ) { *v20 = 0; v19 = 0; } else { LOWORD(v18) = 0; } std::string::reserve((__int64 *)&v18, 0); v20 = (char *)v21[2]; v18 = v21[0]; v19 = v21[1]; } else { v17 = (const char *)GJSpecialColorSelect::textForColorIdx((GJSpecialColorSelect *)a3, v13); v14 = strlen(v17); std::string::assign((__int64 *)&v18, v17, v14); } v15 = (char *)&v18 + 1; if ( (v18 & 1) != 0 ) v15 = v20; ButtonSprite::setString(*((ButtonSprite **)this + 165), v15); if ( (v18 & 1) != 0 ) operator delete(v20); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source