Skip to content

Commit 359a9f2

Browse files
committed
MidairControlForMachSpeed & MidairControlForSnowboards
Signed-off-by: Isaac Marovitz <[email protected]>
1 parent 86f1fd9 commit 359a9f2

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

MarathonRecomp/patches/player_patches.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,28 @@ PPC_FUNC(sub_8220F330)
7474

7575
__imp__sub_8220F330(ctx, base);
7676
}
77+
78+
bool MidairMachSpeedControl1()
79+
{
80+
return Config::MidairControlForMachSpeed;
81+
}
82+
83+
bool MidairMachSpeedControl2()
84+
{
85+
return Config::MidairControlForMachSpeed;
86+
}
87+
88+
bool MidairSnowboardControl1()
89+
{
90+
return Config::MidairControlForSnowboards;
91+
}
92+
93+
bool MidairSnowboardControl2()
94+
{
95+
return Config::MidairControlForSnowboards;
96+
}
97+
98+
bool MidairSnowboardControl3()
99+
{
100+
return Config::MidairControlForSnowboards;
101+
}

MarathonRecomp/user/config_def.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,7 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, DisableLowResolutionFontOnCustomUI, false);
7979
CONFIG_DEFINE_HIDDEN("Codes", bool, RestoreContextualHUDColours, false);
8080
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableEdgeGrabLeftover, false);
8181
CONFIG_DEFINE_HIDDEN("Codes", bool, TailsGauge, false);
82+
CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForMachSpeed, false);
83+
CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForSnowboards, false);
8284

8385
CONFIG_DEFINE("Update", time_t, LastChecked, 0);

MarathonRecompLib/config/Marathon.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,28 @@ name = "PedestrianAnimationLOD"
159159
address = 0x824C2808
160160
registers = ["r29"]
161161
after_instruction = true
162+
163+
[[midasm_hook]]
164+
name = "MidairMachSpeedControl1"
165+
address = 0x82210380
166+
jump_address_on_true = 0x82210388
167+
168+
[[midasm_hook]]
169+
name = "MidairMachSpeedControl2"
170+
address = 0x822103B4
171+
jump_address_on_true = 0x822103BC
172+
173+
[[midasm_hook]]
174+
name = "MidairSnowboardControl1"
175+
address = 0x82214710
176+
jump_address_on_true = 0x82214714
177+
178+
[[midasm_hook]]
179+
name = "MidairSnowboardControl2"
180+
address = 0x82214878
181+
jump_address_on_true = 0x8221487C
182+
183+
[[midasm_hook]]
184+
name = "MidairSnowboardControl3"
185+
address = 0x822145B8
186+
jump_address_on_true = 0x822145BC

0 commit comments

Comments
 (0)