//
// GameLevelOptionsLayer::setupOptions from 0x10037f9ac to 0x10037fac0 (276 bytes)
//
// 1 xrefs:
// > ??> @ 0x100936cd0
//
// 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 11:03:29 +0000
//
__int64 __fastcall GameLevelOptionsLayer::setupOptions(__int64 result)
{
__int64 v1; // x8
__int64 v2; // x19
__int64 v3; // x20
__int64 v4; // x0
v1 = *(_QWORD *)(result + 1128);
if ( v1 )
{
v2 = result;
*(_BYTE *)(GJOptionsLayer::addToggleInternal(result, "Low Detail Mode", 1, *(unsigned __int8 *)(v1 + 769), "") + 393) = 1;
GJOptionsLayer::addToggleInternal(v2, "Disable Shake", 2, *(unsigned __int8 *)(*(_QWORD *)(v2 + 1128) + 770LL), "");
v3 = GJOptionsLayer::addToggleInternal(
v2,
"Enable CBS",
3,
*(_DWORD *)(*(_QWORD *)(v2 + 1128) + 1436LL) == 1,
"Force enable Click Between Steps on this level regardless of the global setting.");
v4 = GJOptionsLayer::addToggleInternal(
v2,
"Disable CBS",
4,
*(_DWORD *)(*(_QWORD *)(v2 + 1128) + 1436LL) == 2,
"Force disable Click Between Steps on this level regardless of the global setting.");
*(_BYTE *)(v3 + 393) = 1;
*(_BYTE *)(v4 + 393) = 1;
result = GJGameLevel::isPlatformer(*(_QWORD *)(v2 + 1128));
if ( (_DWORD)result )
return GJOptionsLayer::addToggleInternal(
v2,
"Enable Platformer\nSaves",
5,
*(unsigned __int8 *)(*(_QWORD *)(v2 + 1128) + 1528LL),
"Force enable checkpoint saving on this level, even if auto-save is globally disabled.");
}
return result;
}