// // GameSettingsLayer::setupTabs from 0xc050f8 to 0xc05408 (784 bytes) // // 2 xrefs: // > GameSettingsLayer::init @ 0xc08274 // > @ 0x100f18 // // 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 13:03:51 +0000 // __int64 __fastcall GameSettingsLayer::setupTabs(cocos2d::CCNode **this) { cocos2d::CCDirector *v2; // x0 __int64 v3; // x23 unsigned __int64 v4; // x22 cocos2d::CCArray *TabButtons; // x0 cocos2d::CCArray *v6; // x20 __int64 v7; // x1 __int64 v8; // x1 cocos2d::CCNode *v9; // x22 __int64 v11; // [xsp+58h] [xbp+58h] BYREF _BYTE v12[8]; // [xsp+60h] [xbp+60h] BYREF __int64 v13; // [xsp+68h] [xbp+68h] BYREF __int64 v14; // [xsp+70h] [xbp+70h] BYREF __int64 v15; // [xsp+78h] [xbp+78h] void *v16; // [xsp+80h] [xbp+80h] v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); cocos2d::CCDirector::getWinSize(&v11, v2); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Gameplay", 8u); TabbedPopupLayer::addTab((int)this, (int)&v14, nullptr); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Visual", 6u); TabbedPopupLayer::addTab((int)this, (int)&v14, nullptr); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Practice", 8u); TabbedPopupLayer::addTab((int)this, (int)&v14, nullptr); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Editor", 6u); TabbedPopupLayer::addTab((int)this, (int)&v14, nullptr); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Audio", 5u); TabbedPopupLayer::addTab((int)this, (int)&v14, nullptr); if ( (v14 & 1) != 0 ) operator delete(v16); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Other", 5u); TabbedPopupLayer::addTab((int)this, (int)&v14, nullptr); if ( (v14 & 1) != 0 ) operator delete(v16); v3 = 0; v4 = 0; TabButtons = (cocos2d::CCArray *)TabbedPopupLayer::createTabButtons((TabbedPopupLayer *)this); v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(TabButtons); v7 = (__int64)*(this + 127); if ( 0x8E38E38E38E38E39LL * (((__int64)*(this + 128) - v7) >> 3) ) { do { v8 = v7 + v3; ++v4; v3 += 72; cocos2d::CCArray::addObject(v6, *(cocos2d::CCObject **)(v8 + 64)); v7 = (__int64)*(this + 127); } while ( v4 < 0x8E38E38E38E38E39LL * (((__int64)*(this + 128) - v7) >> 3) ); } v9 = *(this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v12, *(float *)&v11 * 0.5, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v11 + 1) * 0.5)) - 20.0); cocos2d::CCNode::convertToNodeSpace(&v13, v9, (const cocos2d::CCPoint *)v12); GameToolbox::alignItemsHorisontally((__int64)v6, (__int64)&v13, 0, 4.0); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source