// // VideoOptionsLayer::onApply from 0x100114c64 to 0x100114e4c (488 bytes) // // 1 xrefs: // > VideoOptionsLayer::init @ 0x10011468c // // This function is hookable on this platform (idp: arm, 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 10:59:10 +0000 // __int64 __fastcall VideoOptionsLayer::onApply(__int64 a1) { __int64 v2; // x0 __int64 v3; // x20 __int64 v4; // x0 _QWORD *v5; // x0 __int64 v6; // x0 __int64 v7; // x0 __int64 v8; // x0 __int64 v9; // x0 __int64 v10; // x19 __int64 v12; // x0 __int64 v13; // x0 __int64 v14; // x0 int v15; // w20 void *v16; // x0 __int64 v17; // x0 __int64 v18; // x0 __int64 v19; // x0 __int64 v20; // x0 __int64 v21; // x0 __int64 v22; // x0 int v23; // w20 __int64 v24; // x0 __int64 updated; // x0 __int64 v26; // x0 int v27; // w19 __int64 v28; // x0 void *__p[2]; // [xsp+0h] [xbp-30h] BYREF char v30; // [xsp+17h] [xbp-19h] __int64 v31; // [xsp+18h] [xbp-18h] BYREF v2 = cocos2d::CCArray::stringAtIndex(*(_QWORD *)(a1 + 712), *(unsigned int *)(a1 + 756)); v3 = cocos2d::CCString::intValue(v2); v4 = GameManager::sharedState(v3); v5 = GameManager::resolutionForKey(&v31, v4, v3); v6 = GameManager::sharedState(v5); GameManager::getGameVariable(v6, "0025"); if ( *(unsigned __int8 *)(a1 + 752) != (_DWORD)v7 && (!*(_BYTE *)(a1 + 752) || (v8 = GameManager::sharedState(v7), GameManager::getGameVariable(v8, "0170"), *(unsigned __int8 *)(a1 + 753) == (_DWORD)v7) && (v9 = GameManager::sharedState(v7), GameManager::getGameVariable(v9, "0175"), *(unsigned __int8 *)(a1 + 754) == (_DWORD)v7)) && (v7 = GameManager::sharedState(v7), *(_DWORD *)(v7 + 1056) == (_DWORD)v3) && (v7 = GameManager::sharedState(v7), *(_DWORD *)(v7 + 1060) == *(_DWORD *)(a1 + 704)) ) { sub_100009900(__p, "No changes have been made."); v10 = sub_10034A8F8(0, "Graphics", __p, "OK", 0); if ( v30 < 0 ) operator delete(__p[0]); return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 1312LL))(v10); } else { v12 = GameManager::sharedState(v7); v13 = GameManager::sharedState(v12); *(_DWORD *)(v13 + 1056) = v3; v14 = GameManager::sharedState(v13); *(_DWORD *)(v14 + 1060) = *(_DWORD *)(a1 + 704); v15 = cocos2d::CCDirector::sharedDirector(v14); v16 = (void *)cocos2d::CCScene::create(); v17 = cocos2d::CCDirector::replaceScene(v15, v16); v18 = PlatformToolbox::resizeWindow(v17, *(float *)&v31, *((float *)&v31 + 1)); v19 = GameManager::sharedState(v18); GameManager::getGameVariable(v19, "0025"); if ( *(unsigned __int8 *)(a1 + 752) == (_DWORD)v20 ) { v21 = GameManager::sharedState(v20); GameManager::setGameVariable(v21, "0025", (*(_BYTE *)(a1 + 752) & 1) == 0); v20 = PlatformToolbox::toggleFullScreen( *(unsigned __int8 *)(a1 + 752), *(unsigned __int8 *)(a1 + 753), *(unsigned __int8 *)(a1 + 754)); } v22 = cocos2d::CCDirector::sharedDirector(v20); v23 = *(_DWORD *)(v22 + 400); v24 = cocos2d::CCDirector::sharedDirector(v22); updated = cocos2d::CCDirector::updateContentScale(v24, *(unsigned int *)(a1 + 704)); v26 = cocos2d::CCDirector::sharedDirector(updated); v27 = *(_DWORD *)(v26 + 400); v28 = GameManager::sharedState(v26); if ( v23 == v27 ) return GameManager::queueReloadMenu(v28, 1); else return GameManager::reloadAll(v28, 0, 0, 0, 0, 1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source