mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
Update GameFpsUnlocker.cs
This commit is contained in:
@@ -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"/> 对象,
|
||||||
|
|||||||
Reference in New Issue
Block a user