// // VideoOptionsLayer::updateResolution from 0x1007a0640 to 0x1007a0706 (198 bytes) // // 3 xrefs: // > VideoOptionsLayer::init @ 0x10079fdd5 // > VideoOptionsLayer::onResolutionPrev @ 0x1007a01dd // > VideoOptionsLayer::onResolutionNext @ 0x1007a01fd // // 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 v3; // eax int v4; // esi cocos2d::CCString *v5; // rax int v6; // eax cocos2d::CCLabelBMFont *m_selectedResolutionLabel; // r14 cocos2d::CCString *v8; // rax const char *CString; // rax char v10; // [rsp+0h] [rbp-20h] int v11; // [rsp+8h] [rbp-18h] BYREF double v12; // 0:xmm0_8.8 v3 = sub_100720070((__int64)a1->m_availableResolutions); v4 = v3 - 1; if ( a2 >= 0 ) v4 = a2; if ( v3 <= a2 ) v4 = 0; a1->m_currentResolution = v4; v5 = cocos2d::CCArray::stringAtIndex(a1->m_availableResolutions, v4); cocos2d::CCString::intValue(v5); v6 = (unsigned int)GameManager::sharedState(); *(cocos2d::CCSize *)&v12 = GameManager::resolutionForKey((GameManager *)&v11, v6); m_selectedResolutionLabel = a1->m_selectedResolutionLabel; v8 = (cocos2d::CCString *)sub_1007AB580("%ix%i", v10); CString = cocos2d::CCString::getCString(v8); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *, double))m_selectedResolutionLabel->setString)( m_selectedResolutionLabel, CString, v12); cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_selectedResolutionLabel, 100.0, 0.75, 0.0); VideoOptionsLayer::toggleResolution(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source