//
// LevelOptionsLayer2::setupOptions from 0x10020f520 to 0x10020f71c (508 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008f8d08
//
// 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:01:02 +0000
//
__int64 __fastcall LevelOptionsLayer2::setupOptions(__int64 a1, double a2)
{
double v3; // d0
double v4; // d0
double v5; // d0
double v6; // d0
double v7; // d0
double v8; // d0
double v9; // d0
double v10; // d0
double v11; // d0
double v12; // d0
double v13; // d0
__int64 result; // x0
double v15; // d0
GJOptionsLayer::addToggle(
a1,
"Allow Multi-Rotation",
8,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 448LL),
"Allows multiple rotation actions to run on the same target group. This was not possible before 2.2.",
a2);
GJOptionsLayer::addToggle(
a1,
"Enable 2.2 Changes",
17,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 456LL),
"Legacy compatibility pre 2.2. Should be enabled on new levels.",
v3);
GJOptionsLayer::addToggle(
a1,
"Allow Static-Rotate",
18,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 459LL),
"Allow rotating static objects in actions and animations. There is currently no support for rotating static objects o"
"ther than 90 degree steps, but use this option to allow it anyway. Hitboxes will not match the art. Can be useful in some cases.",
v4);
GJOptionsLayer::addToggle(
a1,
"Enable Player Squeeze",
9,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 449LL),
"Destroys player when squeezed between two objects. This is on by default but only for levels after update 2.2 for le"
"gacy reasons. Cannot be disabled for platformer levels.",
v5);
GJOptionsLayer::addToggle(
a1,
"Fix Gravity Bug",
10,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 450LL),
"Fixes an old bug that makes flipped gravity act differently than normal gravity. Old levels can break with this enabled.",
v6);
GJOptionsLayer::addToggle(
a1,
"Fix Negative Scale",
11,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 451LL),
"Makes negative scaled objects collide correctly. Disabled on old levels for compatibility.",
v7);
GJOptionsLayer::addToggle(
a1,
"Fix Robot Jump",
12,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 452LL),
"Fixes robot jumps being bugged on slopes and/or pads.",
v8);
GJOptionsLayer::addToggle(
a1,
"Dynamic Level Height",
14,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 453LL),
"Increases max level height dynamically (the same way as max length). This option is always enabled in platformer mode.",
v9);
GJOptionsLayer::addToggle(
a1,
"Sort Groups",
15,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 454LL),
"Makes sure that spawn groups are triggered in the correct order (left to right).",
v10);
GJOptionsLayer::addToggle(
a1,
"Fix Radius Collision",
16,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 455LL),
"Replaces the player hitbox with a circle (instead of a square) for interactions with circular hitboxes. This fixes s"
"ome issues where collisions would not register.",
v11);
GJOptionsLayer::addToggle(
a1,
"Reverse Sync",
19,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 460LL),
"Slows down or speeds up the player when reversing direction using orb or pads to keep music in sync.",
v12);
result = GJOptionsLayer::addToggle(
a1,
"Decrease Boost Slide",
22,
*(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 461LL),
"Slide less after dashing or being launched by moving blocks in platformer mode.",
v13);
if ( (*(_BYTE *)(*(_QWORD *)(a1 + 1120) + 462LL) & 1) == 0 )
return GJOptionsLayer::addToggle(
a1,
"Enable Impulse Fix",
23,
0,
"Fix moving platform impulse bugs in platformer mode.",
v15);
return result;
}