Skip to content

Commit ed4ddb0

Browse files
committed
RenderMefiress Resolution Patch
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent bfebb2e commit ed4ddb0

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

MarathonRecomp/patches/video_patches.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ PPC_FUNC(sub_82619D00)
7070
ReflectionScaleFactor(Config::ReflectionResolution));
7171
}
7272

73+
// RenderMefiress
74+
if (*pName == "user0")
75+
{
76+
ctx.r5.u32 = static_cast<int>(Config::ShadowResolution.Value);
77+
ctx.r6.u32 = static_cast<int>(Config::ShadowResolution.Value);
78+
}
79+
7380
#if _DEBUG
7481
auto width = ctx.r5.u32;
7582
auto height = ctx.r6.u32;
@@ -95,6 +102,13 @@ PPC_FUNC(sub_82619B88)
95102
ctx.r5.u32 = g_radarMapScale;
96103
ctx.r6.u32 = g_radarMapScale;
97104
}
105+
106+
// RenderMefiress
107+
if (strcmp(g_pBlockName, "user0") == 0 && *pName == "depthstencil_256")
108+
{
109+
ctx.r5.u32 = static_cast<int>(Config::ShadowResolution.Value);
110+
ctx.r6.u32 = static_cast<int>(Config::ShadowResolution.Value);
111+
}
98112
}
99113

100114
if (*pName == "depthstencil_1_4")

0 commit comments

Comments
 (0)