File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
UnleashedRecompLib/config Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -157,12 +157,18 @@ PPC_FUNC(sub_824C1E60)
157
157
__imp__sub_824C1E60 (ctx, base);
158
158
}
159
159
160
- // Remove boost filter
161
- void DisableBoostFilterMidAsmHook (PPCRegister& r11)
160
+ // This function is called in various places but primarily for the boost filter
161
+ // when the second argument (r4) is set to "boost". Whilst boosting the third argument (f1)
162
+ // will go up to 1.0f and then down to 0.0f as the player lets off of the boost button.
163
+ // To avoid the boost filter from kicking in at all if the function is called with "boost"
164
+ // we set the third argument to zero no matter what (if the code is on).
165
+ PPC_FUNC_IMPL (__imp__sub_82B4DB48);
166
+ PPC_FUNC (sub_82B4DB48)
162
167
{
163
- if (Config::DisableBoostFilter)
168
+ if (Config::DisableBoostFilter && strcmp (( const char *)(base + ctx. r4 . u32 ), " boost " ) == 0 )
164
169
{
165
- if (r11.u32 == 1 )
166
- r11.u32 = 0 ;
170
+ ctx.f1 .f64 = 0 .0f ;
167
171
}
172
+
173
+ __imp__sub_82B4DB48 (ctx, base);
168
174
}
Original file line number Diff line number Diff line change @@ -1101,11 +1101,6 @@ name = "ObjGrindDashPanelAllocMidAsmHook"
1101
1101
address = 0x82614948
1102
1102
registers = [" r3" ]
1103
1103
1104
- [[midasm_hook ]]
1105
- name = " DisableBoostFilterMidAsmHook"
1106
- address = 0x82B48C9C
1107
- registers = [" r11" ]
1108
-
1109
1104
[[midasm_hook ]]
1110
1105
name = " UseAlternateTitleMidAsmHook"
1111
1106
address = 0x82580F44
You can’t perform that action at this time.
0 commit comments