diff --git a/UnleashedRecomp/config.h b/UnleashedRecomp/config.h index 652ed07..cdf6429 100644 --- a/UnleashedRecomp/config.h +++ b/UnleashedRecomp/config.h @@ -48,6 +48,7 @@ public: CONFIG_DEFINE_ENUM("Video", EShadowResolution, ShadowResolution, EShadowResolution::x4096); CONFIG_DEFINE_ENUM("Video", EGITextureFiltering, GITextureFiltering, EGITextureFiltering::Bicubic); CONFIG_DEFINE("Video", bool, AlphaToCoverage, true); + CONFIG_DEFINE("Video", bool, MotionBlur, true); CONFIG_DEFINE("Video", bool, Xbox360ColourCorrection, false); CONFIG_DEFINE_ENUM("Video", EMovieScaleMode, MovieScaleMode, EMovieScaleMode::Fit); CONFIG_DEFINE_ENUM("Video", EUIScaleMode, UIScaleMode, EUIScaleMode::Centre); diff --git a/UnleashedRecomp/game.cpp b/UnleashedRecomp/game.cpp index 4e244f7..fc80797 100644 --- a/UnleashedRecomp/game.cpp +++ b/UnleashedRecomp/game.cpp @@ -269,6 +269,11 @@ PPC_FUNC(sub_82547DF0) } } +bool MotionBlurMidAsmHook() +{ + return Config::MotionBlur; +} + #pragma endregion #pragma region DLC Hooks diff --git a/UnleashedRecompLib/config/SWA.toml b/UnleashedRecompLib/config/SWA.toml index e071707..33deebc 100644 --- a/UnleashedRecompLib/config/SWA.toml +++ b/UnleashedRecompLib/config/SWA.toml @@ -347,4 +347,9 @@ registers = ["r11"] [[midasm_hook]] name = "WerehogBattleMusicMidAsmHook" address = 0x82B47728 -registers = ["r11"] \ No newline at end of file +registers = ["r11"] + +[[midasm_hook]] +name = "MotionBlurMidAsmHook" +address = 0x82BA99D0 +jump_address_on_false = 0x82BAA544