//
// GameLevelOptionsLayer::setupOptions from 0x1403aa5f0 to 0x1403aa720 (304 bytes)
//
// 4 xrefs:
// > ??> @ 0x14077e600
// > ??> @ 0x1408c0664
// > ??> @ 0x1408c0674
// > ??> @ 0x1409239b4
//
// 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 11:31:20 +0000
//
void __fastcall GameLevelOptionsLayer::setupOptions(__int64 a1)
{
__int64 v1; // r9
struct cocos2d::CCObject *v3; // rbx
struct cocos2d::CCObject *v4; // rax
__int64 v5; // r9
v1 = *(_QWORD *)(a1 + 1144);
if ( v1 )
{
*((_BYTE *)GJOptionsLayer::addToggleInternal(a1, "Low Detail Mode", 1, *(_BYTE *)(v1 + 841), &byte_1406ED6E0) + 393) = 1;
GJOptionsLayer::addToggleInternal(
a1,
"Disable Shake",
2,
*(_BYTE *)(*(_QWORD *)(a1 + 1144) + 842LL),
&byte_1406ED6E0);
v3 = GJOptionsLayer::addToggleInternal(
a1,
"Enable CBS",
3,
*(_DWORD *)(*(_QWORD *)(a1 + 1144) + 1588LL) == 1,
"Force enable Click Between Steps on this level regardless of the global setting.");
v4 = GJOptionsLayer::addToggleInternal(
a1,
"Disable CBS",
4,
*(_DWORD *)(*(_QWORD *)(a1 + 1144) + 1588LL) == 2,
"Force disable Click Between Steps on this level regardless of the global setting.");
*((_BYTE *)v3 + 393) = 1;
*((_BYTE *)v4 + 393) = 1;
v5 = *(_QWORD *)(a1 + 1144);
if ( *(_DWORD *)(v5 + 972) == 5 )
GJOptionsLayer::addToggleInternal(
a1,
"Enable Platformer\nSaves",
5,
*(_BYTE *)(v5 + 1704),
"Force enable checkpoint saving on this level, even if auto-save is globally disabled.");
}
}