// // VideoOptionsLayer::updateResolution from 0x424740 to 0x4247e4 (164 bytes) // // 3 xrefs: // > VideoOptionsLayer::onResolutionPrev @ 0x4247f6 // > VideoOptionsLayer::onResolutionNext @ 0x424800 // > VideoOptionsLayer::init @ 0x425466 // // 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 VideoOptionsLayer::updateResolution(VideoOptionsLayer *a1, int a2) { int v4; // r0 cocos2d::CCString *v5; // r0 int v6; // r4 GameManager *v7; // r0 cocos2d::CCLabelBMFont *m_selectedResolutionLabel; // r4 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r7 cocos2d::CCString *v10; // r0 const char *CString; // r0 cocos2d::CCSize v12; // [sp+4h] [bp-10h] BYREF v4 = cocos2d::CCArray::count(a1->m_availableResolutions); if ( a2 >= v4 ) { a2 = 0; } else if ( a2 < 0 ) { a2 = v4 - 1; } a1->m_currentResolution = a2; v5 = cocos2d::CCArray::stringAtIndex(a1->m_availableResolutions, a2); v6 = cocos2d::CCString::intValue(v5); v7 = GameManager::sharedState(); GameManager::resolutionForKey(&v12, v7, v6); m_selectedResolutionLabel = a1->m_selectedResolutionLabel; setString = m_selectedResolutionLabel->setString; v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%ix%i", (const char *)(int)v12.width, (int)v12.height); CString = cocos2d::CCString::getCString(v10); setString(m_selectedResolutionLabel, (const unsigned __int8 *)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