// // MoreOptionsLayer::onToggle from 0x422490 to 0x4226b4 (548 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 MoreOptionsLayer::onToggle(MoreOptionsLayer *a1, cocos2d::CCObject *a2) { intptr_t v3; // r0 cocos2d::CCString *v4; // r6 GameManager *v5; // r4 const char *CString; // r0 bool v7; // r10 char *v8; // r0 int v9; // r11 GameManager *v10; // r5 GameManager *v11; // r0 GameManager *v12; // r0 bool v13; // r0 char *v14; // r0 int v15; // r11 GameManager *v16; // r0 bool v17; // r0 char *v18; // r0 int v19; // r11 GameManager *v20; // r0 bool v21; // r0 char *v22; // r0 int v23; // r11 cocos2d::CCDirector *v24; // r8 GameManager *v25; // r0 bool GameVariable; // r6 char *v27; // r0 int v28; // r6 float v29; // [sp+0h] [bp-1Ch] _BYTE v30[4]; // [sp+8h] [bp-14h] BYREF cocos2d::CCPoint v31; // [sp+Ch] [bp-10h] BYREF cocos2d::CCPoint v32; // 0:kr00_8.8 v3 = a2->getTag(a2); v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a1->m_objects, v3); if ( v4 ) { v5 = GameManager::sharedState(); CString = cocos2d::CCString::getCString(v4); v7 = GameManager::toggleGameVariable(v5, CString); v8 = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)v30, v8); sub_776584((int)&v31, "0028"); v9 = sub_774DBC(v30, &v31); sub_774008(&v31); sub_774008(v30); if ( v9 ) { v14 = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)v30, v14); sub_776584((int)&v31, "0023"); v15 = sub_774DBC(v30, &v31); sub_774008(&v31); sub_774008(v30); if ( v15 ) { v18 = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)v30, v18); sub_776584((int)&v31, "0032"); v19 = sub_774DBC(v30, &v31); sub_774008(&v31); sub_774008(v30); if ( v19 ) { v22 = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)v30, v22); sub_776584((int)&v31, "0115"); v23 = sub_774DBC(v30, &v31); sub_774008(&v31); sub_774008(v30); if ( v23 ) { v27 = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)v30, v27); sub_776584((int)&v31, "0168"); v28 = sub_774DBC(v30, &v31); sub_774008(&v31); sub_774008(v30); if ( !v28 ) cocos2d::CCDirector::sharedDirector()->m_bFastMenu = v7; } else { v24 = cocos2d::CCDirector::sharedDirector(); v25 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v25, "0115"); sub_776584((int)v30, "chatFont.fnt"); cocos2d::CCPoint::CCPoint(&v31, 0.0, 0.0); LODWORD(v32.x) = &v31; v32.y = v29; cocos2d::CCDirector::toggleShowFPS(v24, GameVariable, (std::string)v30, v32); sub_774008(v30); } } else { v20 = GameManager::sharedState(); v21 = GameManager::getGameVariable(v20, "0032"); PlatformToolbox::toggleForceTimer(v21); } } else { v16 = GameManager::sharedState(); v17 = GameManager::getGameVariable(v16, "0023"); PlatformToolbox::toggleSmoothFix(v17); } } else { v10 = GameManager::sharedState(); v11 = GameManager::sharedState(); v10->m_disableThumbstick = GameManager::getGameVariable(v11, "0028"); v12 = GameManager::sharedState(); v13 = GameManager::getGameVariable(v12, "0028"); PlatformToolbox::toggleMouseControl(!v13); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source