Skip to content

Commit 802ed8c

Browse files
committed
Clean-up 2
1 parent 30823af commit 802ed8c

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

MarathonRecomp/patches/player_patches.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,27 +100,27 @@ bool MidairSnowboardControl3()
100100
return Config::MidairControlForSnowboards;
101101
}
102102

103-
//Add Missing SetupModuleDebug to table
104-
void DebugPlayerSwitch_0(PPCRegister& r_sstring, PPCRegister& r_index)
103+
// Add missing SetupModuleDebug to table.
104+
void DebugPlayerSwitch(PPCRegister& str, PPCRegister& index)
105105
{
106106
if (!Config::DebugSwitch)
107-
{
108107
return;
109-
}
110108

111-
auto pString = (stdx::string*)(g_memory.Translate(r_sstring.u32));
112-
auto Index = r_index.u32;
113-
switch (Index)
109+
auto pString = (stdx::string*)g_memory.Translate(str.u32);
110+
111+
switch (index.u32)
114112
{
115-
case 0:
116-
*pString = "SetupModuleDebug";
117-
break;
118-
case 1:
119-
*pString = "SetupModule";
120-
break;
121-
case 2:
122-
*pString = "SetupModuleDebug";
123-
break;
113+
case 0:
114+
*pString = "SetupModuleDebug";
115+
break;
116+
117+
case 1:
118+
*pString = "SetupModule";
119+
break;
120+
121+
case 2:
122+
*pString = "SetupModuleDebug";
123+
break;
124124
}
125125
}
126126

MarathonRecompLib/config/Marathon.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ address = 0x8260D7E0
201201
registers = ["r26"]
202202

203203
[[midasm_hook]]
204-
name = "DebugPlayerSwitch_0"
204+
name = "DebugPlayerSwitch"
205205
address = 0x82195AD0
206-
registers = ["r5","r27"]
206+
registers = ["r5", "r27"]
207207

208208
[[midasm_hook]]
209209
name = "DisableRadialBlur"

0 commit comments

Comments
 (0)