Add motion blur toggle.

This commit is contained in:
Skyth 2024-11-06 00:47:16 +03:00
parent fabc1ffbc7
commit d8512fd6b7
3 changed files with 12 additions and 1 deletions

View file

@ -48,6 +48,7 @@ public:
CONFIG_DEFINE_ENUM("Video", EShadowResolution, ShadowResolution, EShadowResolution::x4096); CONFIG_DEFINE_ENUM("Video", EShadowResolution, ShadowResolution, EShadowResolution::x4096);
CONFIG_DEFINE_ENUM("Video", EGITextureFiltering, GITextureFiltering, EGITextureFiltering::Bicubic); CONFIG_DEFINE_ENUM("Video", EGITextureFiltering, GITextureFiltering, EGITextureFiltering::Bicubic);
CONFIG_DEFINE("Video", bool, AlphaToCoverage, true); CONFIG_DEFINE("Video", bool, AlphaToCoverage, true);
CONFIG_DEFINE("Video", bool, MotionBlur, true);
CONFIG_DEFINE("Video", bool, Xbox360ColourCorrection, false); CONFIG_DEFINE("Video", bool, Xbox360ColourCorrection, false);
CONFIG_DEFINE_ENUM("Video", EMovieScaleMode, MovieScaleMode, EMovieScaleMode::Fit); CONFIG_DEFINE_ENUM("Video", EMovieScaleMode, MovieScaleMode, EMovieScaleMode::Fit);
CONFIG_DEFINE_ENUM("Video", EUIScaleMode, UIScaleMode, EUIScaleMode::Centre); CONFIG_DEFINE_ENUM("Video", EUIScaleMode, UIScaleMode, EUIScaleMode::Centre);

View file

@ -269,6 +269,11 @@ PPC_FUNC(sub_82547DF0)
} }
} }
bool MotionBlurMidAsmHook()
{
return Config::MotionBlur;
}
#pragma endregion #pragma endregion
#pragma region DLC Hooks #pragma region DLC Hooks

View file

@ -347,4 +347,9 @@ registers = ["r11"]
[[midasm_hook]] [[midasm_hook]]
name = "WerehogBattleMusicMidAsmHook" name = "WerehogBattleMusicMidAsmHook"
address = 0x82B47728 address = 0x82B47728
registers = ["r11"] registers = ["r11"]
[[midasm_hook]]
name = "MotionBlurMidAsmHook"
address = 0x82BA99D0
jump_address_on_false = 0x82BAA544