// // MoreVideoOptionsLayer::onToggle from 0x426260 to 0x4264de (638 bytes) // // 0 xrefs: // // 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 // void MoreVideoOptionsLayer::onToggle(MoreVideoOptionsLayer *a1, cocos2d::CCObject *a2) { intptr_t v3; // r0 cocos2d::CCString *v4; // r6 GameManager *v5; // r4 const char *CString; // r0 char *v7; // r0 int v8; // r11 GameManager *v9; // r0 bool v10; // r0 char *v11; // r0 int v12; // r11 GameManager *v13; // r0 bool v14; // r0 char *v15; // r0 int v16; // r11 GameManager *v17; // r0 bool v18; // r0 char *v19; // r0 int v20; // r11 GameManager *v21; // r0 bool v22; // r0 char *v23; // r0 int v24; // r11 cocos2d::CCDirector *v25; // r8 GameManager *v26; // r0 bool GameVariable; // r6 char *v28; // r0 int v29; // r6 GameManager *v30; // r0 cocos2d::CCDirector *v31; // r0 GameManager *v32; // r0 float v33; // [sp+0h] [bp-1Ch] _BYTE v34[4]; // [sp+8h] [bp-14h] BYREF cocos2d::CCPoint v35; // [sp+Ch] [bp-10h] BYREF cocos2d::CCPoint v36; // 0:kr00_8.8 v3 = a2->getTag(a2); v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a1->m_variables, v3); if ( v4 ) { v5 = GameManager::sharedState(); CString = cocos2d::CCString::getCString(v4); GameManager::toggleGameVariable(v5, CString); v7 = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)v34, v7); sub_776584((int)&v35, "0028"); v8 = sub_774DBC(v34, &v35); sub_774008(&v35); sub_774008(v34); if ( v8 ) { v11 = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)v34, v11); sub_776584((int)&v35, "0030"); v12 = sub_774DBC(v34, &v35); sub_774008(&v35); sub_774008(v34); if ( v12 ) { v15 = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)v34, v15); sub_776584((int)&v35, "0032"); v16 = sub_774DBC(v34, &v35); sub_774008(&v35); sub_774008(v34); if ( v16 ) { v19 = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)v34, v19); sub_776584((int)&v35, "0023"); v20 = sub_774DBC(v34, &v35); sub_774008(&v35); sub_774008(v34); if ( v20 ) { v23 = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)v34, v23); sub_776584((int)&v35, "0115"); v24 = sub_774DBC(v34, &v35); sub_774008(&v35); sub_774008(v34); if ( v24 ) { v28 = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)v34, v28); sub_776584((int)&v35, "0116"); v29 = sub_774DBC(v34, &v35); sub_774008(&v35); sub_774008(v34); if ( !v29 ) { v30 = GameManager::sharedState(); if ( GameManager::getGameVariable(v30, "0116") ) { v32 = GameManager::sharedState(); GameManager::updateCustomFPS(v32); } else { v31 = cocos2d::CCDirector::sharedDirector(); ((void (__fastcall *)(cocos2d::CCDirector *, void (__fastcall *)(cocos2d::CCDirector *__hidden, double), int, int))v31->setAnimationInterval)( v31, v31->setAnimationInterval, 0x20000000, 1066471697); } MoreVideoOptionsLayer::updateFPSButtons(a1); } } else { v25 = cocos2d::CCDirector::sharedDirector(); v26 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v26, "0115"); sub_776584((int)v34, "chatFont.fnt"); cocos2d::CCPoint::CCPoint(&v35, 0.0, 0.0); LODWORD(v36.x) = &v35; v36.y = v33; cocos2d::CCDirector::toggleShowFPS(v25, GameVariable, (std::string)v34, v36); sub_774008(v34); } } else { v21 = GameManager::sharedState(); v22 = GameManager::getGameVariable(v21, "0023"); PlatformToolbox::toggleSmoothFix(v22); } } else { v17 = GameManager::sharedState(); v18 = GameManager::getGameVariable(v17, "0032"); PlatformToolbox::toggleForceTimer(v18); } } else { v13 = GameManager::sharedState(); v14 = GameManager::getGameVariable(v13, "0030"); PlatformToolbox::toggleVerticalSync(v14); } } else { v9 = GameManager::sharedState(); v10 = GameManager::getGameVariable(v9, "0028"); PlatformToolbox::toggleMouseControl(!v10); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source