// // GameLevelOptionsLayer::didToggle from 0x5d8670 to 0x5d877c (268 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:54:10 +0000 // GJOptionsLayer *__fastcall GameLevelOptionsLayer::didToggle(GJOptionsLayer *this, int a2) { GJOptionsLayer *v2; // r4 int v3; // r3 int v4; // r5 int v5; // r5 int *v6; // r4 int v7; // r3 int v8; // r5 int v9; // r5 CCMenuItemToggler *ToggleButton; // r0 int v11[3]; // [sp+8h] [bp-10h] BYREF v2 = this; switch ( a2 ) { case 1: v3 = *((_DWORD *)this + 196); v4 = *(unsigned __int8 *)(v3 + 1148); if ( (v4 & 1) != 0 ) v5 = *(_DWORD *)(v3 + 1152); else v5 = v4 >> 1; if ( v5 ) { memset(v11, 0, sizeof(v11)); std::string::__init( v11, "Changing LDM will delete your saved checkpoint for this level.", 0x5Eu); v6 = FLAlertLayer::create( (int)v2 + 780, (cocos2d::CCLabelBMFont *)"Low Detail Mode", (int)v11, (ButtonSprite *)"Cancel", (ButtonSprite *)"OK", 380.0); std::string::~string((int)v11); this = (GJOptionsLayer *)(*(int (__fastcall **)(int *))(*v6 + 656))(v6); } else { this = GameLevelOptionsLayer::toggleLDM(this); } break; case 2: *(_BYTE *)(*((_DWORD *)this + 196) + 594) ^= 1u; break; case 3: case 4: v7 = *((_DWORD *)this + 196); v8 = *(_DWORD *)(v7 + 1128); if ( a2 == 3 ) { v9 = v8 != 1; } else if ( v8 == 2 ) { v9 = 0; } else { v9 = 2; } *(_DWORD *)(v7 + 1128) = v9; ToggleButton = (CCMenuItemToggler *)GJOptionsLayer::getToggleButton(this, 3u); if ( ToggleButton ) CCMenuItemToggler::toggle(ToggleButton, v9 == 1); this = (GJOptionsLayer *)GJOptionsLayer::getToggleButton(v2, 4u); if ( this ) this = (GJOptionsLayer *)CCMenuItemToggler::toggle(this, v9 == 2); break; case 5: *(_BYTE *)(*((_DWORD *)this + 196) + 1180) ^= 1u; break; default: return this; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source