Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions HsMod/Patcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,18 @@ public static bool PatchAspectRatioWithinLimit(ref bool __result, int width, int
{
__result = true;
return false;
}
//移除分辨率限制V2
[HarmonyPrefix]
[HarmonyPatch(typeof(ResizeManagerV2), "Update")]
public static bool PatchResizeManagerV2Update(ref float ___m_minResolutionResizeDelay)
{
___m_minResolutionResizeDelay = UnityEngine.Time.time + 114514;
return true;
}

//命令行修改分辨率,阻止炉石自修改
[HarmonyPrefix]
//命令行修改分辨率,阻止炉石自修改
[HarmonyPrefix]
[HarmonyPatch(typeof(Screen), "SetResolution", new Type[] { typeof(int), typeof(int), typeof(bool) })]
public static bool PatchSetResolution(ref int width, ref int height, ref bool fullscreen)
{
Expand Down