// // UISaveLoadLayer::init from 0x5d90c0 to 0x5d933e (638 bytes) // // 1 xrefs: // > UISaveLoadLayer::create @ 0x5d9404 // // 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:54:10 +0000 // int __fastcall UISaveLoadLayer::init(cocos2d::CCPoint **this, UIOptionsLayer *a2) { const char *v4; // r5 size_t v5; // r0 cocos2d::CCDirector *v6; // r0 const char *v7; // r5 cocos2d::CCString *v8; // r0 ButtonSprite *CString; // r0 ButtonSprite *v10; // r0 int v11; // r6 cocos2d::CCString *v12; // r0 ButtonSprite *v13; // r0 ButtonSprite *v14; // r0 int v15; // r6 void (__fastcall *v16)(int, _BYTE *); // r9 float v18; // [sp+10h] [bp-8Ch] float v19; // [sp+10h] [bp-8Ch] cocos2d::CCPoint *v20; // [sp+14h] [bp-88h] cocos2d::CCPoint *v21; // [sp+14h] [bp-88h] cocos2d::CCPoint *v22; // [sp+18h] [bp-84h] float v23[2]; // [sp+38h] [bp-64h] BYREF _BYTE v24[8]; // [sp+40h] [bp-5Ch] BYREF _BYTE v25[8]; // [sp+48h] [bp-54h] BYREF _BYTE v26[8]; // [sp+50h] [bp-4Ch] BYREF _BYTE v27[8]; // [sp+58h] [bp-44h] BYREF _DWORD (*v28)(UISaveLoadLayer *__hidden, cocos2d::CCObject *); // [sp+60h] [bp-3Ch] int v29; // [sp+64h] [bp-38h] _DWORD (*v30)(UISaveLoadLayer *__hidden, cocos2d::CCObject *); // [sp+68h] [bp-34h] int v31; // [sp+6Ch] [bp-30h] int v32[3]; // [sp+70h] [bp-2Ch] BYREF int v33[3]; // [sp+7Ch] [bp-20h] BYREF int v34[3]; // [sp+88h] [bp-14h] BYREF v18 = COERCE_FLOAT(SetupTriggerPopup::init((SetupTriggerPopup *)this, nullptr, nullptr, 240.0, 220.0, 1, 0.0)); if ( v18 != 0.0 ) { *(this + 178) = a2; SetupTriggerPopup::preSetup((SetupTriggerPopup *)this); if ( *((_BYTE *)a2 + 712) ) v4 = "Save/Load Dual UI"; else v4 = "Save/Load UI"; memset(v32, 0, sizeof(v32)); v5 = strlen(v4); std::string::__init(v32, v4, v5); std::string::basic_string(v33, (int)v32); SetupTriggerPopup::addTitle(this, v33); std::string::~string((int)v33); memset(v34, 0, sizeof(v34)); std::string::__init(v34, "OK", 2u); SetupTriggerPopup::addCloseButton(this, v34); v6 = (cocos2d::CCDirector *)std::string::~string((int)v34); cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, v23[0] * 0.5, (float)(v23[1] * 0.5) + 50.0); v7 = (char *)&dword_0 + 1; do { v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Save %i", v7); CString = (ButtonSprite *)cocos2d::CCString::getCString(v8); v10 = ButtonSprite::create( CString, (const char *)&word_32, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", (const char *)0x41F00000, v18); v29 = 0; v28 = UISaveLoadLayer::onSave; v11 = CCMenuItemSpriteExtra::create((int)v10, 0, (int)this, (int)UISaveLoadLayer::onSave, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v11); v20 = *(cocos2d::CCPoint **)(*(_DWORD *)v11 + 92); v22 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, -40.0, (float)(int)(v7 - 1) * -40.0); cocos2d::CCPoint::operator+(v26, v24, v25); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v27, v22); ((void (__fastcall *)(int, _BYTE *))v20)(v11, v27); (*(void (__fastcall **)(int, const char *))(*(_DWORD *)v11 + 36))(v11, v7); v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Load %i", v7); v13 = (ButtonSprite *)cocos2d::CCString::getCString(v12); v14 = ButtonSprite::create( v13, (const char *)&word_32, 0, 0.8, 1, "goldFont.fnt", "GJ_button_02.png", (const char *)0x41F00000, v19); v31 = 0; v30 = UISaveLoadLayer::onLoad; v15 = CCMenuItemSpriteExtra::create((int)v14, 0, (int)this, (int)UISaveLoadLayer::onLoad, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v15); v16 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v15 + 92); v21 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 40.0, (float)(int)(v7 - 1) * -40.0); cocos2d::CCPoint::operator+(v26, v24, v25); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v27, v21); v16(v15, v27); (*(void (__fastcall **)(int, const char *))(*(_DWORD *)v15 + 36))(v15, v7++); } while ( v7 != byte_4 ); SetupTriggerPopup::postSetup((SetupTriggerPopup *)this); std::string::~string((int)v32); } return LODWORD(v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source