//
// GameLevelOptionsLayer::setupOptions from 0x1002e2578 to 0x1002e264c (212 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007dd2d0
//
// 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 GameLevelOptionsLayer::setupOptions(GameLevelOptionsLayer *a1)
{
GJGameLevel *m_level; // x8
__int64 v3; // x0
__int64 v4; // x20
__int64 v5; // x0
m_level = a1->m_level;
if ( m_level )
{
GJOptionsLayer::addToggleInternal(a1, "Low Detail Mode", 1, m_level->m_lowDetailModeToggled, "");
GJOptionsLayer::addToggleInternal(a1, "Disable Shake", 2, a1->m_level->m_disableShakeToggled, "");
GJOptionsLayer::addToggleInternal(
a1,
"Enable CBS",
3,
a1->m_level->m_cbsOverride == 1,
"Force enable Click Between Steps on this level regardless of the global setting.");
v4 = v3;
GJOptionsLayer::addToggleInternal(
a1,
"Disable CBS",
4,
a1->m_level->m_cbsOverride == 2,
"Force disable Click Between Steps on this level regardless of the global setting.");
*(_BYTE *)(v4 + 393) = 1;
*(_BYTE *)(v5 + 393) = 1;
}
}