//
// AutoSaveSettingsLayer::valueDidChange from 0x1005bdc90 to 0x1005bdd7e (238 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b7e578
//
// 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:32:45 +0000
//
void __fastcall AutoSaveSettingsLayer::valueDidChange(__int64 a1, int a2)
{
__int64 v2; // rax
const std::string::value_type *v3; // rsi
__int64 v4; // rax
std::string::value_type *v5; // rsi
switch ( a2 )
{
case -4:
v2 = GameManager::sharedState();
v3 = "0187";
goto LABEL_4;
case -3:
v4 = GameManager::sharedState();
v5 = "0186";
goto LABEL_7;
case -2:
v2 = GameManager::sharedState();
v3 = "0185";
LABEL_4:
GameManager::setIntGameVariable(v2, v3);
return;
case -1:
v4 = GameManager::sharedState();
v5 = "0184";
LABEL_7:
GameManager::setGameVariable(v4, v5);
break;
default:
return;
}
}