// // VideoOptionsLayer::updateResolution from 0x1404cde90 to 0x1404cdf9a (266 bytes) // // 4 xrefs: // > VideoOptionsLayer::init @ 0x1404cda8d // > VideoOptionsLayer::onResolutionPrev @ 0x1404cde78 // > VideoOptionsLayer::onResolutionNext @ 0x1404cde88 // > @ 0x1409296a8 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:32:59 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall VideoOptionsLayer::updateResolution(__int64 a1, signed int a2) { signed int v4; // eax cocos2d::CCString *v5; // rax __int64 v6; // rcx int v7; // ebx __int64 v8; // r9 void (__fastcall **v9)(__int64, const char *); // rdi __int64 v10; // rbx cocos2d::CCString *v11; // rax const char *CString; // rax float v14; // [rsp+30h] [rbp+8h] BYREF float v15; // [rsp+34h] [rbp+Ch] void *v16; // [rsp+40h] [rbp+18h] v4 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 712)); if ( a2 < v4 ) { if ( a2 < 0 ) a2 = v4 - 1; } else { a2 = 0; } *(_DWORD *)(a1 + 756) = a2; v5 = cocos2d::CCArray::stringAtIndex(*(cocos2d::CCArray **)(a1 + 712), a2); v7 = cocos2d::CCString::intValue(v5); if ( !qword_14090BFD0 ) { v16 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } GameManager::resolutionForKey(v6, (cocos2d::CCSize *)&v14, v7, v8); v9 = *(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 688) + 360LL); v10 = *(_QWORD *)(a1 + 688); v11 = cocos2d::CCString::createWithFormat("%ix%i", (int)v14, (int)v15); CString = cocos2d::CCString::getCString(v11); (*v9)(v10 + 360, CString); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 688), 100.0, 0.75, 0.0); return VideoOptionsLayer::toggleResolution(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source