//
// GameLevelOptionsLayer::setupOptions from 0x10029fb20 to 0x10029fc38 (280 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b04248
//
// 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:27:54 +0000
//
__int64 __fastcall GameLevelOptionsLayer::setupOptions(__int64 a1, double a2)
{
__int64 result; // rax
__int64 v4; // r14
__int64 v5; // rax
result = *(_QWORD *)(a1 + 1128);
if ( result )
{
*(_BYTE *)(sub_100287300(a1, "Low Detail Mode", 1, *(unsigned __int8 *)(result + 769), "") + 393) = 1;
sub_100287300(a1, "Disable Shake", 2, *(unsigned __int8 *)(*(_QWORD *)(a1 + 1128) + 770LL), "");
v4 = sub_100287300(
a1,
"Enable CBS",
3,
*(_DWORD *)(*(_QWORD *)(a1 + 1128) + 1436LL) == 1,
"Force enable Click Between Steps on this level regardless of the global setting.");
v5 = sub_100287300(
a1,
"Disable CBS",
4,
*(_DWORD *)(*(_QWORD *)(a1 + 1128) + 1436LL) == 2,
"Force disable Click Between Steps on this level regardless of the global setting.");
*(_BYTE *)(v4 + 393) = 1;
*(_BYTE *)(v5 + 393) = 1;
result = GJGameLevel::isPlatformer(*(_QWORD *)(a1 + 1128), a2);
if ( (_BYTE)result )
return sub_100287300(
a1,
"Enable Platformer\nSaves",
5,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 1128) + 1528LL),
"Force enable checkpoint saving on this level, even if auto-save is globally disabled.");
}
return result;
}