1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 14:53:30 +08:00

work in progress

This commit is contained in:
2025-04-24 17:25:47 +08:00
parent 40aa331294
commit 68a18c113d
20 changed files with 339 additions and 228 deletions

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Reflection.Emit;
using System.Threading;
using System.Xml;
using BepInEx.Configuration;
using CommonAPI.Systems;
@@ -270,8 +271,6 @@ public class GamePatch : PatchImpl<GamePatch>
LastWindowRect.Value = new Vector4(x, y, w, h);
}
}
MoveWindowPosition();
}
protected override void OnDisable()
@@ -311,13 +310,6 @@ public class GamePatch : PatchImpl<GamePatch>
height = h;
}
[HarmonyPostfix]
[HarmonyPatch(typeof(Screen), nameof(Screen.SetResolution), typeof(int), typeof(int), typeof(FullScreenMode), typeof(int))]
private static void Screen_SetResolution_Postfix(FullScreenMode fullscreenMode)
{
MoveWindowPosition();
}
private static void VFPreload_InvokeOnLoadWorkEnded_Postfix()
{
if (_loaded || Screen.fullScreenMode is FullScreenMode.ExclusiveFullScreen or FullScreenMode.FullScreenWindow or FullScreenMode.MaximizedWindow) return;