//
// GameManager::loadVideoSettings from 0x100389030 to 0x10038911f (239 bytes)
//
// 1 xrefs:
// > AppDelegate::applicationDidFinishLaunching @ 0x10065c1a3
//
// 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 GameManager::loadVideoSettings(GameManager *a1)
{
GameManager *v1; // rdi
void *v2; // rbx
bool GameVariable; // al
GameManager *v4; // rdi
void *v5; // rbx
bool v6; // al
GameManager *v7; // rdi
void *v8; // rbx
bool v9; // al
v1 = (GameManager *)qword_1009A0E18;
if ( !qword_1009A0E18 )
{
v2 = operator new(0x638u);
sub_10038CE40(v2);
qword_1009A0E18 = (__int64)v2;
(*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 80LL))(v2);
v1 = (GameManager *)qword_1009A0E18;
}
GameVariable = GameManager::getGameVariable(v1, "0030");
PlatformToolbox::toggleVerticalSync(GameVariable);
v4 = (GameManager *)qword_1009A0E18;
if ( !qword_1009A0E18 )
{
v5 = operator new(0x638u);
sub_10038CE40(v5);
qword_1009A0E18 = (__int64)v5;
(*(void (__fastcall **)(void *))(*(_QWORD *)v5 + 80LL))(v5);
v4 = (GameManager *)qword_1009A0E18;
}
v6 = GameManager::getGameVariable(v4, "0032");
PlatformToolbox::toggleForceTimer(v6);
v7 = (GameManager *)qword_1009A0E18;
if ( !qword_1009A0E18 )
{
v8 = operator new(0x638u);
sub_10038CE40(v8);
qword_1009A0E18 = (__int64)v8;
(*(void (__fastcall **)(void *))(*(_QWORD *)v8 + 80LL))(v8);
v7 = (GameManager *)qword_1009A0E18;
}
v9 = GameManager::getGameVariable(v7, "0023");
PlatformToolbox::toggleSmoothFix(v9);
}