// // EditorUI::cycleCustomGridPreset from 0x10047515c to 0x100475220 (196 bytes) // // 4 xrefs: // > EditorUI::handleEditorAction @ 0x10016288c // > EditorUI::handleEditorAction @ 0x100163684 // > sub_1004DF528 @ 0x1004df544 // > sub_1004DF564 @ 0x1004df580 // // 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:05:40 +0000 // __int64 __fastcall EditorUI::cycleCustomGridPreset(__int64 a1, char a2) { float v3; // s0 __int64 v4; // x8 float v5; // s1 float v6; // s0 __int64 v7; // x0 float v9; // s1 __int64 v10; // x8 if ( (*(_BYTE *)(a1 + 656) & 1) != 0 ) { v3 = *(float *)(a1 + 652); if ( (a2 & 1) != 0 ) { v4 = 0; v5 = v3 + 0.001; while ( 1 ) { v6 = *(float *)((char *)&unk_10076F230 + v4); if ( v6 > v5 ) break; v4 += 4; if ( v4 == 20 ) { v6 = 120.0; return sub_100475084(a1, v6); } } } else { v9 = v3 + -0.001; v10 = 16; while ( 1 ) { v6 = *(float *)((char *)&unk_10076F230 + v10); if ( v6 < v9 ) break; v10 -= 4; if ( v10 == -4 ) { v6 = 7.5; return sub_100475084(a1, v6); } } } } else { *(_BYTE *)(a1 + 656) = 1; v7 = GameManager::sharedState(); GameManager::setGameVariable(v7, "0194", 1); v6 = 30.0; } return sub_100475084(a1, v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source