mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
code: Add Disable Boost Filter code (#999)
This commit is contained in:
parent
48458cb903
commit
8a80db141d
3 changed files with 16 additions and 0 deletions
|
|
@ -146,3 +146,13 @@ PPC_FUNC(sub_824C1E60)
|
||||||
|
|
||||||
__imp__sub_824C1E60(ctx, base);
|
__imp__sub_824C1E60(ctx, base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove boost filter
|
||||||
|
void DisableBoostFilterMidAsmHook(PPCRegister& r11)
|
||||||
|
{
|
||||||
|
if (Config::DisableBoostFilter)
|
||||||
|
{
|
||||||
|
if (r11.u32 == 1)
|
||||||
|
r11.u32 = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,7 @@ CONFIG_DEFINE_ENUM_LOCALISED("Video", EUIAlignmentMode, UIAlignmentMode, EUIAlig
|
||||||
|
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, AllowCancellingUnleash, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, AllowCancellingUnleash, false);
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableAutoSaveWarning, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableAutoSaveWarning, false);
|
||||||
|
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableBoostFilter, false);
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableDLCIcon, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableDLCIcon, false);
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableDWMRoundedCorners, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, DisableDWMRoundedCorners, false);
|
||||||
CONFIG_DEFINE_HIDDEN("Codes", bool, EnableEventCollisionDebugView, false);
|
CONFIG_DEFINE_HIDDEN("Codes", bool, EnableEventCollisionDebugView, false);
|
||||||
|
|
|
||||||
|
|
@ -1093,3 +1093,8 @@ registers = ["r31", "r29", "r28"]
|
||||||
name = "ObjGrindDashPanelAllocMidAsmHook"
|
name = "ObjGrindDashPanelAllocMidAsmHook"
|
||||||
address = 0x82614948
|
address = 0x82614948
|
||||||
registers = ["r3"]
|
registers = ["r3"]
|
||||||
|
|
||||||
|
[[midasm_hook]]
|
||||||
|
name = "DisableBoostFilterMidAsmHook"
|
||||||
|
address = 0x82B48C9C
|
||||||
|
registers = ["r11"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue