Skip to content

Commit 63bbd49

Browse files
committed
Patches cleanup
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent 32cae3a commit 63bbd49

3 files changed

Lines changed: 11 additions & 24 deletions

File tree

MarathonRecomp/patches/misc_patches.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ void ContextualHUD_RING_1(PPCRegister& index, PPCRegister& hud)
8585
index.u32 = chr_index;
8686
}
8787

88-
void PostureDisableEdgeGrabLeftover(PPCRegister& posture) {
88+
void PostureDisableEdgeGrabLeftover(PPCRegister& posture)
89+
{
8990
if (!Config::DisableEdgeGrabLeftover) {
9091
return;
9192
}
@@ -94,7 +95,8 @@ void PostureDisableEdgeGrabLeftover(PPCRegister& posture) {
9495
*(volatile uint8_t*)(base + (posture.u32 + 0x3C0)) = 1;
9596
}
9697

97-
void PedestrianAnimationLOD(PPCRegister& val) {
98+
void PedestrianAnimationLOD(PPCRegister& val)
99+
{
98100
val.u32 = 0;
99101
}
100102

MarathonRecomp/patches/player_patches.cpp

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -71,27 +71,12 @@ PPC_FUNC(sub_821E8C48)
7171
__imp__sub_821E8C48(ctx, base);
7272
}
7373

74-
bool MidairMachSpeedControl1()
74+
bool MidairMachSpeedControl()
7575
{
7676
return Config::MidairControlForMachSpeed;
7777
}
7878

79-
bool MidairMachSpeedControl2()
80-
{
81-
return Config::MidairControlForMachSpeed;
82-
}
83-
84-
bool MidairSnowboardControl1()
85-
{
86-
return Config::MidairControlForSnowboards;
87-
}
88-
89-
bool MidairSnowboardControl2()
90-
{
91-
return Config::MidairControlForSnowboards;
92-
}
93-
94-
bool MidairSnowboardControl3()
79+
bool MidairSnowboardControl()
9580
{
9681
return Config::MidairControlForSnowboards;
9782
}

MarathonRecompLib/config/Marathon.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,27 +161,27 @@ registers = ["r29"]
161161
after_instruction = true
162162

163163
[[midasm_hook]]
164-
name = "MidairMachSpeedControl1"
164+
name = "MidairMachSpeedControl"
165165
address = 0x82210380
166166
jump_address_on_true = 0x82210388
167167

168168
[[midasm_hook]]
169-
name = "MidairMachSpeedControl2"
169+
name = "MidairMachSpeedControl"
170170
address = 0x822103B4
171171
jump_address_on_true = 0x822103BC
172172

173173
[[midasm_hook]]
174-
name = "MidairSnowboardControl1"
174+
name = "MidairSnowboardControl"
175175
address = 0x82214710
176176
jump_address_on_true = 0x82214714
177177

178178
[[midasm_hook]]
179-
name = "MidairSnowboardControl2"
179+
name = "MidairSnowboardControl"
180180
address = 0x82214878
181181
jump_address_on_true = 0x8221487C
182182

183183
[[midasm_hook]]
184-
name = "MidairSnowboardControl3"
184+
name = "MidairSnowboardControl"
185185
address = 0x822145B8
186186
jump_address_on_true = 0x822145BC
187187

0 commit comments

Comments
 (0)