// // VideoOptionsLayer::updateResolution from 0x100881730 to 0x1008817f6 (198 bytes) // // 3 xrefs: // > VideoOptionsLayer::init @ 0x100880ec5 // > VideoOptionsLayer::onResolutionPrev @ 0x1008812cd // > VideoOptionsLayer::onResolutionNext @ 0x1008812ed // // 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 12:36:57 +0000 // __int64 __fastcall VideoOptionsLayer::updateResolution(__int64 a1, int a2) { int v3; // eax unsigned int v4; // esi __int64 v5; // rax int v6; // r14d __int64 v7; // rax __int64 v8; // r14 __int64 v9; // rax __int64 CString; // rax char v12; // [rsp+0h] [rbp-20h] int v13; // [rsp+8h] [rbp-18h] BYREF v3 = sub_1007FEF90(*(_QWORD *)(a1 + 712)); v4 = v3 - 1; if ( a2 >= 0 ) v4 = a2; if ( v3 <= a2 ) v4 = 0; *(_DWORD *)(a1 + 756) = v4; v5 = cocos2d::CCArray::stringAtIndex(*(_QWORD *)(a1 + 712), v4); v6 = cocos2d::CCString::intValue(v5); v7 = GameManager::sharedState(); GameManager::resolutionForKey((float *)&v13, v7, v6); v8 = *(_QWORD *)(a1 + 688); v9 = sub_10088E820("%ix%i", v12); CString = cocos2d::CCString::getCString(v9); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 928LL))(v8, CString); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 688), 100.0, (__m128)0x3F400000u, (__m128)0LL); return VideoOptionsLayer::toggleResolution(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source