From ed4ddb0e37a4ed862a8f784be35ffad98f84ff1e Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Mon, 15 Sep 2025 11:52:21 -0400 Subject: [PATCH] RenderMefiress Resolution Patch Signed-off-by: Isaac Marovitz --- MarathonRecomp/patches/video_patches.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/MarathonRecomp/patches/video_patches.cpp b/MarathonRecomp/patches/video_patches.cpp index cff29903c..ecb8b483d 100644 --- a/MarathonRecomp/patches/video_patches.cpp +++ b/MarathonRecomp/patches/video_patches.cpp @@ -70,6 +70,13 @@ PPC_FUNC(sub_82619D00) ReflectionScaleFactor(Config::ReflectionResolution)); } + // RenderMefiress + if (*pName == "user0") + { + ctx.r5.u32 = static_cast(Config::ShadowResolution.Value); + ctx.r6.u32 = static_cast(Config::ShadowResolution.Value); + } + #if _DEBUG auto width = ctx.r5.u32; auto height = ctx.r6.u32; @@ -95,6 +102,13 @@ PPC_FUNC(sub_82619B88) ctx.r5.u32 = g_radarMapScale; ctx.r6.u32 = g_radarMapScale; } + + // RenderMefiress + if (strcmp(g_pBlockName, "user0") == 0 && *pName == "depthstencil_256") + { + ctx.r5.u32 = static_cast(Config::ShadowResolution.Value); + ctx.r6.u32 = static_cast(Config::ShadowResolution.Value); + } } if (*pName == "depthstencil_1_4")