// // StartPosLayer::addModeButtons from 0x6aab98 to 0x6aad08 (368 bytes) // // 1 xrefs: // > StartPosLayer::init @ 0x6acf00 // // 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:56:34 +0000 // unsigned int __fastcall StartPosLayer::addModeButtons(StartPosLayer *this) { int v2; // r3 unsigned int v3; // r11 const cocos2d::CCPoint *v4; // r7 cocos2d::CCArray *v5; // r0 int v6; // r5 cocos2d::CCObject *v7; // r0 cocos2d::CCArray *v8; // r0 cocos2d::CCArray *v9; // r9 const char *v10; // r1 cocos2d::CCSprite *v11; // r0 cocos2d::CCObject *v12; // r7 int v13; // r0 cocos2d::CCObject *v14; // r6 float v16[2]; // [sp+10h] [bp-34h] BYREF _BYTE v17[8]; // [sp+18h] [bp-2Ch] BYREF _BYTE v18[8]; // [sp+20h] [bp-24h] BYREF _DWORD v19[2]; // [sp+28h] [bp-1Ch] BYREF int v20[3]; // [sp+30h] [bp-14h] BYREF v2 = *(_DWORD *)(*((_DWORD *)this + 178) + 1648); v3 = *(unsigned __int8 *)(v2 + 281); *((_DWORD *)this + 179) = *(_DWORD *)(v2 + 268); cocos2d::CCDirector::sharedDirector(this); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v16); v4 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v19, v16[0] * 0.5, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v16[1] * 0.5)) - 30.0); v5 = (cocos2d::CCArray *)cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v17, v4); v6 = 0; v7 = (cocos2d::CCObject *)cocos2d::CCArray::create(v5); *((_DWORD *)this + 181) = v7; v8 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v7); v9 = (cocos2d::CCArray *)cocos2d::CCArray::create(v8); do { SelectSettingLayer::frameForItem(v20, v3, v6); if ( (v20[0] & 1) != 0 ) v11 = (cocos2d::CCSprite *)v20[2]; else v11 = (cocos2d::CCSprite *)((char *)v20 + 1); v12 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(v11, v10); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 181), v12); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v12 + 80))(v12, 1063675494); v19[1] = 0; v19[0] = StartPosLayer::onSelectMode; v13 = CCMenuItemSpriteExtra::create((int)v12, 0, (int)this, (int)StartPosLayer::onSelectMode, 0); v14 = (cocos2d::CCObject *)v13; if ( v3 == 1 && (v6 == 4 || v6 == 7) ) { (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v13 + 528))(v13, 0); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v12 + 456))(v12, 125); } (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v14 + 36))(v14, v6); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v14); cocos2d::CCArray::addObject(v9, v14); ++v6; std::string::~string((int)v20); } while ( v6 != 8 ); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, (const cocos2d::CCPoint *)v17); GameToolbox::alignItemsHorisontally(*(float *)&v9, 5.0, (int)v18, 0); return StartPosLayer::onSelectMode(this, nullptr); }
GD Web Decomp Icon

GD Web Decomp

Raw Source