// // VideoOptionsLayer::updateResolution from 0x1000f0f98 to 0x1000f1058 (192 bytes) // // 3 xrefs: // > VideoOptionsLayer::init @ 0x1000f08d8 // > VideoOptionsLayer::onResolutionPrev @ 0x1000f0cac // > VideoOptionsLayer::onResolutionNext @ 0x1000f0cb8 // // 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 __fastcall VideoOptionsLayer::updateResolution(VideoOptionsLayer *a1, int a2) { int v4; // w0 int v5; // w8 unsigned int v6; // w1 cocos2d::CCString *v7; // x0 int v8; // w20 GameManager *v9; // x0 cocos2d::CCLabelBMFont *m_selectedResolutionLabel; // x20 cocos2d::CCString *v11; // x0 const char *CString; // x0 float v13; // [xsp+18h] [xbp-18h] float v14; // [xsp+1Ch] [xbp-14h] v4 = sub_10024A36C(a1->m_availableResolutions); v5 = v4 - 1; if ( a2 >= 0 ) v5 = a2; if ( v4 <= a2 ) v6 = 0; else v6 = v5; a1->m_currentResolution = v6; v7 = cocos2d::CCArray::stringAtIndex(a1->m_availableResolutions, v6); v8 = cocos2d::CCString::intValue(v7); v9 = GameManager::sharedState(); GameManager::resolutionForKey(v9, v8); m_selectedResolutionLabel = a1->m_selectedResolutionLabel; v11 = (cocos2d::CCString *)sub_100268F4C("%ix%i", (int)v13, (int)v14); CString = cocos2d::CCString::getCString(v11); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_selectedResolutionLabel->setString)( m_selectedResolutionLabel, CString); cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_selectedResolutionLabel, 100.0, 0.75, 0.0); VideoOptionsLayer::toggleResolution(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source