From 90b396703a35dedd8bc6090f62eab421ae97fa72 Mon Sep 17 00:00:00 2001 From: Lightczx <1686188646@qq.com> Date: Wed, 7 Jun 2023 15:54:08 +0800 Subject: [PATCH] Update GameFpsUnlocker.cs --- .../Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Snap.Hutao/Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs b/src/Snap.Hutao/Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs index 2d22f8e8..be3bdc0f 100644 --- a/src/Snap.Hutao/Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs +++ b/src/Snap.Hutao/Snap.Hutao/Service/Game/Unlocker/GameFpsUnlocker.cs @@ -3,11 +3,9 @@ using Snap.Hutao.Core.Diagnostics; using Snap.Hutao.Core.ExceptionService; -using Snap.Hutao.Win32; using System.Diagnostics; using System.Runtime.InteropServices; using Windows.Win32.Foundation; -using Windows.Win32.System.Diagnostics.ToolHelp; using Windows.Win32.System.ProcessStatus; using static Windows.Win32.PInvoke; @@ -23,8 +21,7 @@ internal sealed class GameFpsUnlocker : IGameFpsUnlocker private readonly Process gameProcess; private readonly LaunchOptions launchOptions; private readonly ILogger logger; - - private UnlockerStatus status = new(); + private readonly UnlockerStatus status = new(); /// /// 构造一个新的 对象,