// // StartPosBrowser::init from 0x490038 to 0x4902aa (626 bytes) // // 1 xrefs: // > StartPosBrowser::create @ 0x490370 // // 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:36 +0000 // GameManager *__fastcall StartPosBrowser::init(cocos2d::CCPoint **this, cocos2d::CCArray *a2, cocos2d::CCPoint *a3) { GameManager *v6; // r0 GameManager *v7; // r9 int v8; // r7 void (__fastcall *v9)(int, _BYTE *); // r8 void (__fastcall *v10)(int, _BYTE *); // r8 const char *v11; // r2 int v12; // r7 void (__fastcall *v13)(int, _BYTE *); // r10 cocos2d::CCMenu *v14; // r0 cocos2d::CCPoint *v15; // r0 const char *v16; // r1 int v17; // r0 int v18; // r7 void (__fastcall *v19)(int, _BYTE *); // r11 const char *v20; // r2 cocos2d::CCPoint *v21; // r0 int v22; // r7 void (__fastcall *v23)(int, _BYTE *); // r8 int v24; // r7 void (__fastcall *v25)(int, _BYTE *); // r8 cocos2d::CCPoint *v27; // [sp+Ch] [bp-38h] float v28; // [sp+14h] [bp-30h] BYREF float v29; // [sp+18h] [bp-2Ch] int (__fastcall *v30)(cocos2d::CCObject **, cocos2d::CCObject *); // [sp+1Ch] [bp-28h] int v31; // [sp+20h] [bp-24h] _BYTE v32[8]; // [sp+24h] [bp-20h] BYREF _BYTE v33[16]; // [sp+2Ch] [bp-18h] BYREF v6 = FLAlertLayer::init((FLAlertLayer *)this, 150); v7 = v6; if ( v6 ) { *(this + 134) = a3; *((_BYTE *)this + 468) = 1; *(this + 132) = a2; if ( a2 ) v6 = (GameManager *)cocos2d::CCObject::retain(a2); cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v28); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v33, 0.0, 0.0, 80.0, 80.0); v8 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v33); v9 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v33, 400.0, 280.0); v9(v8, v33); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v8, -1); v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v28 * 0.5, v29 * 0.5); v10(v8, v33); v12 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Select StartPos", "goldFont.fnt", v11); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v12, 10); v13 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v28 * 0.5, (float)((float)(v29 * 0.5) + 140.0) - 20.0); v13(v12, v33); v14 = (cocos2d::CCMenu *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v12 + 80))(v12, 1061997773); v15 = (cocos2d::CCPoint *)cocos2d::CCMenu::create(v14); *(this + 111) = v15; (*(void (__fastcall **)(_DWORD, cocos2d::CCPoint *, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v15, 10); *(this + 125) = (cocos2d::CCPoint *)-1; v17 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v16); v30 = StartPosBrowser::onClose; v31 = 0; v18 = CCMenuItemSpriteExtra::create(v17, 0, (int)this, (int)StartPosBrowser::onClose, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v18); CCMenuItemSpriteExtra::setSizeMult(v18, 1.6); v19 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v18 + 92); v27 = *(this + 111); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v33, (float)((float)(v28 * 0.5) - 200.0) + 10.0, (float)((float)(v29 * 0.5) + 140.0) - 10.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v32, v27); v19(v18, v32); v21 = (cocos2d::CCPoint *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "goldFont.fnt", v20); *(this + 135) = v21; (*(void (__fastcall **)(_DWORD, cocos2d::CCPoint *, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v21, 10); v22 = (int)*(this + 135); v23 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v22 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v33, (float)((float)(v28 * 0.5) + 200.0) - 15.0, (float)((float)(v29 * 0.5) + 140.0) - 8.0); v23(v22, v33); v24 = (int)*(this + 135); v25 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v24 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 1.0, 1.0); v25(v24, v33); (*(void (__fastcall **)(_DWORD, float))(*(_DWORD *)*(this + 135) + 80))(*(this + 135), 0.5); StartPosBrowser::setupList((StartPosBrowser *)this); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source