Update GameFpsUnlocker.cs

This commit is contained in:
Lightczx
2023-06-07 15:54:08 +08:00
parent be4fa571cd
commit 90b396703a

View File

@@ -3,11 +3,9 @@
using Snap.Hutao.Core.Diagnostics; using Snap.Hutao.Core.Diagnostics;
using Snap.Hutao.Core.ExceptionService; using Snap.Hutao.Core.ExceptionService;
using Snap.Hutao.Win32;
using System.Diagnostics; using System.Diagnostics;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using Windows.Win32.Foundation; using Windows.Win32.Foundation;
using Windows.Win32.System.Diagnostics.ToolHelp;
using Windows.Win32.System.ProcessStatus; using Windows.Win32.System.ProcessStatus;
using static Windows.Win32.PInvoke; using static Windows.Win32.PInvoke;
@@ -23,8 +21,7 @@ internal sealed class GameFpsUnlocker : IGameFpsUnlocker
private readonly Process gameProcess; private readonly Process gameProcess;
private readonly LaunchOptions launchOptions; private readonly LaunchOptions launchOptions;
private readonly ILogger<GameFpsUnlocker> logger; private readonly ILogger<GameFpsUnlocker> logger;
private readonly UnlockerStatus status = new();
private UnlockerStatus status = new();
/// <summary> /// <summary>
/// 构造一个新的 <see cref="GameFpsUnlocker"/> 对象, /// 构造一个新的 <see cref="GameFpsUnlocker"/> 对象,