// // SetFolderPopup::init from 0x5db014 to 0x5db1bc (424 bytes) // // 1 xrefs: // > SetFolderPopup::create @ 0x5db27c // // 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:12 +0000 // int __fastcall SetFolderPopup::init(int a1, int a2, char a3, int a4) { int v7; // r8 cocos2d::CCDirector *v8; // r0 const char *v9; // r2 int v10; // r0 int v11; // r6 void (__fastcall *v12)(int, _DWORD *); // r9 const char *v13; // r1 int v14; // r5 int v15; // r6 const cocos2d::CCPoint *v16; // r11 void (__fastcall *v17)(int, _BYTE *); // r10 float v19; // [sp+24h] [bp-40h] BYREF float v20; // [sp+28h] [bp-3Ch] _BYTE v21[8]; // [sp+2Ch] [bp-38h] BYREF _BYTE v22[8]; // [sp+34h] [bp-30h] BYREF _DWORD v23[2]; // [sp+3Ch] [bp-28h] BYREF int v24[3]; // [sp+44h] [bp-20h] BYREF int v25[3]; // [sp+50h] [bp-14h] BYREF std::string::basic_string(v24, a4); memset(v25, 0, sizeof(v25)); std::string::__init(v25, "OK", 2u); v7 = SetIDPopup::init((int *)a1, a2, 0, 999, (unsigned __int8 *)v24, (int)v25, 1, 0, 60.0, 0, 0); std::string::~string((int)v25); v8 = (cocos2d::CCDirector *)std::string::~string((int)v24); if ( v7 ) { cocos2d::CCDirector::sharedDirector(v8); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v19); *(_BYTE *)(a1 + 552) = a3; v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "bigFont.fnt", v9); *(_DWORD *)(a1 + 556) = v10; (*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 80))(v10, 1053609165); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 556), 1); v11 = *(_DWORD *)(a1 + 556); v12 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v11 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, v19 * 0.5, (float)((float)(v20 * 0.5) + 35.0) + 60.0); v12(v11, v23); v14 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn_001.png", v13); (*(void (__fastcall **)(int, float))(*(_DWORD *)v14 + 80))(v14, 0.5); v23[0] = SetFolderPopup::onSetFolderName; v23[1] = 0; v15 = CCMenuItemSpriteExtra::create(v14, 0, a1, (int)SetFolderPopup::onSetFolderName, 0); CCMenuItemSpriteExtra::setSizeMult(v15, 1.1); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v15); v16 = *(const cocos2d::CCPoint **)(a1 + 444); v17 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v15 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v21, (float)(v19 * 0.5) + 90.0, (float)((float)(v20 * 0.5) + 20.0) + 60.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v22, v16); v17(v15, v22); (*(void (__fastcall **)(int))(*(_DWORD *)a1 + 680))(a1); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source