// // MoreVideoOptionsLayer::init from 0x7cfff8 to 0x7d0480 (1160 bytes) // // 3 xrefs: // > MoreVideoOptionsLayer::create @ 0x7d055c // > @ 0xaa448 // > @ 0x117e4d0 // // 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) { char v2; // w23 GameManager *v4; // x0 cocos2d::CCDirector *v5; // x0 cocos2d::CCLayer *v6; // x0 cocos2d::CCNode *v7; // x24 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x25 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCLabelBMFont *v10; // x24 void (__fastcall *v11)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCDictionary *v12; // x0 cocos2d::CCDictionary *v13; // x0 cocos2d::CCMenu *v14; // x0 cocos2d::CCSprite *v15; // x0 CCMenuItemSpriteExtra *v16; // x24 cocos2d::CCMenu *m_buttonMenu; // x26 void (__fastcall *v18)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCSprite *v19; // x0 CCMenuItemSpriteExtra *v20; // x0 cocos2d::CCMenu *v21; // x2 CCMenuItemSpriteExtra *m_prevButton; // x25 cocos2d::CCMenu *v23; // x27 void (__fastcall *v24)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCDirector *v25; // x0 float v26; // s0 cocos2d::CCSprite *v27; // x24 CCMenuItemSpriteExtra *v28; // x0 cocos2d::CCMenu *v29; // x2 CCMenuItemSpriteExtra *m_nextButton; // x24 cocos2d::CCMenu *v31; // x26 void (__fastcall *v32)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCDirector *v33; // x0 float v34; // s0 float v35; // [xsp+78h] [xbp+78h] float v36; // [xsp+7Ch] [xbp+7Ch] _BYTE v37[8]; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCRect v38; // [xsp+88h] [xbp+88h] BYREF cocos2d::CCPoint v39; // 0:kr08_8.8 cocos2d::CCPoint v40; // 0:kr10_8.8 cocos2d::CCPoint v41; // 0:kr18_8.8 cocos2d::SEL_MenuHandler v42; // 0:x2.16 cocos2d::SEL_MenuHandler v43; // 0:x2.16 cocos2d::SEL_MenuHandler v44; // 0:x2.16 cocos2d::CCRect v45; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 v38.origin.x = 8388600.0; v2 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::_ccColor4B *)&v38); if ( v2 ) { v4 = GameManager::sharedState(); if ( GameManager::getGameVariable(v4, "0168") ) a1->m_noElasticity = 1; FLAlertLayer::incrementForcePrio(a1); a1->setTouchEnabled(a1, 1); a1->setKeypadEnabled(a1, 1); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); v6 = cocos2d::CCLayer::create(); a1->m_mainLayer = v6; a1->addChild(a1, v6); cocos2d::CCRect::CCRect(&v38, 0.0, 0.0, 80.0, 80.0); v7 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"GJ_square01.png", (const char *)&v38, v45); setContentSize = v7->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v38, 360.0, 260.0); setContentSize(v7, (const cocos2d::CCSize *)&v38); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, -1); setPosition = v7->setPosition; cocos2d::CCPoint::CCPoint(&v38.origin, v35 * 0.5, v36 * 0.5); setPosition(v7, &v38.origin); v10 = cocos2d::CCLabelBMFont::create(); v11 = v10->setPosition; cocos2d::CCPoint::CCPoint(&v38.origin, v35 * 0.5, (float)((float)(v36 * 0.5) + 130.0) - 16.0); v11(v10, &v38.origin); a1->m_mainLayer->addChild(a1->m_mainLayer, v10); v10->setScale(v10, 0.6); 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"); v42.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v42.adj = (size_t)MoreVideoOptionsLayer::onClose; v16 = CCMenuItemSpriteExtra::create(v15, nullptr, v42); CCMenuItemSpriteExtra::setSizeMult(v16, 1.5); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v16); m_buttonMenu = a1->m_buttonMenu; v18 = v16->setPosition; cocos2d::CCPoint::CCPoint( &v38.origin, (float)((float)(v35 * 0.5) + -180.0) + 5.0, (float)((float)(v36 * 0.5) + 130.0) - 5.0); v39 = cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, &v38.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *, float, float))v18)(v16, v37, v39.x, v39.y); v19 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v43.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v43.adj = (size_t)MoreVideoOptionsLayer::onPrevPage; v20 = CCMenuItemSpriteExtra::create(v19, nullptr, v43); v21 = a1->m_buttonMenu; a1->m_prevButton = v20; v21->addChild(v21, v20); m_prevButton = a1->m_prevButton; v23 = a1->m_buttonMenu; v24 = m_prevButton->setPosition; v25 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenLeft(v25); cocos2d::CCPoint::CCPoint(&v38.origin, v26 + 24.0, v36 * 0.5); v40 = cocos2d::CCNode::convertToNodeSpace(v23, &v38.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *, float, float))v24)(m_prevButton, v37, v40.x, v40.y); v27 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v27, 1); v44.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v44.adj = (size_t)MoreVideoOptionsLayer::onNextPage; v28 = CCMenuItemSpriteExtra::create(v27, nullptr, v44); v29 = a1->m_buttonMenu; a1->m_nextButton = v28; v29->addChild(v29, v28); m_nextButton = a1->m_nextButton; v31 = a1->m_buttonMenu; v32 = m_nextButton->setPosition; v33 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v33); cocos2d::CCPoint::CCPoint(&v38.origin, v34 - 24.0, v36 * 0.5); v41 = cocos2d::CCNode::convertToNodeSpace(v31, &v38.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BYTE *, float, float))v32)(m_nextButton, v37, v41.x, v41.y); MoreVideoOptionsLayer::goToPage(a1, 0); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source