File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ address = 0x8260D7E0
201201registers = [" r26" ]
202202
203203[[midasm_hook ]]
204- name = " DebugPlayerSwitch_0 "
204+ name = " DebugPlayerSwitch "
205205address = 0x82195AD0
206206registers = [" r5" ," r27" ]
207207
You can’t perform that action at this time.
0 commit comments