// // MoreVideoOptionsLayer::init from 0x425e4c to 0x4261a4 (856 bytes) // // 1 xrefs: // > MoreVideoOptionsLayer::create @ 0x4255d8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool MoreVideoOptionsLayer::init(MoreVideoOptionsLayer *a1) { int v2; // r9 GameManager *v3; // r0 cocos2d::CCDirector *v4; // r0 cocos2d::CCLayer *v5; // r0 MoreVideoOptionsLayer_vtbl *v6; // r3 cocos2d::CCNode *v7; // r6 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r8 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCLabelBMFont *v10; // r6 void (__fastcall *v11)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCDictionary *v12; // r0 cocos2d::CCDictionary *v13; // r0 cocos2d::CCMenu *v14; // r0 cocos2d::CCSprite *v15; // r0 CCMenuItemSpriteExtra *v16; // r10 void (__fastcall *v17)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11 float v18; // s16 cocos2d::CCSprite *v19; // r0 CCMenuItemSpriteExtra *v20; // r0 void (__fastcall *v21)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11 cocos2d::CCDirector *v22; // r0 float v23; // r0 cocos2d::CCSprite *v24; // r10 CCMenuItemSpriteExtra *v25; // r0 CCMenuItemSpriteExtra *m_nextButton; // r10 void (__fastcall *v27)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11 cocos2d::CCDirector *v28; // r0 float v29; // r0 float v31; // r2 float v32; // r3 cocos2d::CCMenu *m_buttonMenu; // [sp+8h] [bp-4Ch] cocos2d::CCMenu *v34; // [sp+8h] [bp-4Ch] cocos2d::CCMenu *v35; // [sp+8h] [bp-4Ch] CCMenuItemSpriteExtra *m_prevButton; // [sp+Ch] [bp-48h] cocos2d::CCSize v37; // [sp+14h] [bp-40h] BYREF void (*v38)(MoreVideoOptionsLayer *, cocos2d::CCObject *); // [sp+1Ch] [bp-38h] int v39; // [sp+20h] [bp-34h] void (*v40)(MoreVideoOptionsLayer *, cocos2d::CCObject *); // [sp+24h] [bp-30h] int v41; // [sp+28h] [bp-2Ch] void (*v42)(MoreVideoOptionsLayer *, cocos2d::CCObject *); // [sp+2Ch] [bp-28h] int v43; // [sp+30h] [bp-24h] cocos2d::CCPoint v44; // [sp+34h] [bp-20h] BYREF cocos2d::CCRect v45; // [sp+3Ch] [bp-18h] BYREF cocos2d::CCSize v46; // 0:^0.8 cocos2d::CCRect v47; // 0:kr00_16.16 v45.origin.x = 8388600.0; v2 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::_ccColor4B *)&v45); if ( v2 ) { v3 = GameManager::sharedState(); if ( GameManager::getGameVariable(v3, "0168") ) a1->m_noElasticity = 1; FLAlertLayer::incrementForcePrio(a1); a1->setTouchEnabled(a1, 1); a1->setKeypadEnabled(a1, 1); v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v37, v4); v5 = cocos2d::CCLayer::create(); v6 = a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_mainLayer = v5; v6->addChild(a1, v5); cocos2d::CCRect::CCRect(&v45, 0.0, 0.0, 80.0, 80.0); v47.origin.x = v31; v47.origin.y = v32; v47.size = v46; v7 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"GJ_square01.png", (const char *)&v45, v47); setContentSize = v7->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v45, 360.0, 260.0); setContentSize(v7, (const cocos2d::CCSize *)&v45); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, -1); setPosition = v7->setPosition; cocos2d::CCPoint::CCPoint(&v45.origin, v37.width * 0.5, v37.height * 0.5); setPosition(v7, &v45.origin); v10 = cocos2d::CCLabelBMFont::create(); v11 = v10->setPosition; cocos2d::CCPoint::CCPoint(&v45.origin, v37.width * 0.5, (float)((float)(v37.height * 0.5) + 130.0) - 16.0); v11(v10, &v45.origin); a1->m_mainLayer->addChild(a1->m_mainLayer, v10); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v10->setScale)(v10, 1058642330); a1->m_joystickConnected = -1; v12 = cocos2d::CCDictionary::create(); a1->m_variables = v12; cocos2d::CCObject::retain(v12); v13 = cocos2d::CCDictionary::create(); a1->m_values = v13; cocos2d::CCObject::retain(v13); v14 = cocos2d::CCMenu::create(); a1->m_buttonMenu = v14; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v14, 10); MoreVideoOptionsLayer::addToggle( a1, "Smooth Fix", "0023", "Makes some optimizations that can reduce lag. Disable if game speed becomes inconsistent."); MoreVideoOptionsLayer::addToggle(a1, "Show FPS", "0115", "Shows frames per second while playing."); v15 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v38 = MoreVideoOptionsLayer::onClose; v39 = 0; v16 = CCMenuItemSpriteExtra::create( v15, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(MoreVideoOptionsLayer::onClose, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v16, 1.5); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v16); v17 = v16->setPosition; m_buttonMenu = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint( &v45.origin, (float)((float)(v37.width * 0.5) - 180.0) + 5.0, (float)((float)(v37.height * 0.5) + 130.0) - 5.0); cocos2d::CCNode::convertToNodeSpace(&v44, m_buttonMenu, &v45.origin); v17(v16, &v44); v18 = v37.height * 0.5; v19 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v41 = 0; v40 = MoreVideoOptionsLayer::onPrevPage; v20 = CCMenuItemSpriteExtra::create( v19, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(MoreVideoOptionsLayer::onPrevPage, (unsigned int)a1)); a1->m_prevButton = v20; a1->m_buttonMenu->addChild(a1->m_buttonMenu, v20); m_prevButton = a1->m_prevButton; v21 = m_prevButton->setPosition; v34 = a1->m_buttonMenu; v22 = cocos2d::CCDirector::sharedDirector(); v23 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v22)); cocos2d::CCPoint::CCPoint(&v45.origin, v23 + 24.0, v18); cocos2d::CCNode::convertToNodeSpace(&v44, v34, &v45.origin); v21(m_prevButton, &v44); v24 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v24, 1); v42 = MoreVideoOptionsLayer::onNextPage; v43 = 0; v25 = CCMenuItemSpriteExtra::create( v24, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(MoreVideoOptionsLayer::onNextPage, (unsigned int)a1)); a1->m_nextButton = v25; a1->m_buttonMenu->addChild(a1->m_buttonMenu, v25); m_nextButton = a1->m_nextButton; v27 = m_nextButton->setPosition; v35 = a1->m_buttonMenu; v28 = cocos2d::CCDirector::sharedDirector(); v29 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v28)); cocos2d::CCPoint::CCPoint(&v45.origin, v29 - 24.0, v18); cocos2d::CCNode::convertToNodeSpace(&v44, v35, &v45.origin); v27(m_nextButton, &v44); MoreVideoOptionsLayer::goToPage(a1, 0); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source