package convert fixed

This commit is contained in:
Lightczx
2023-07-30 21:54:10 +08:00
parent a661530025
commit 4c337a79b9
2 changed files with 12 additions and 3 deletions

View File

@@ -1,12 +1,10 @@
// Copyright (c) DGP Studio. All rights reserved.
// Licensed under the MIT license.
using Microsoft.Extensions.Caching.Memory;
using Snap.Hutao.Core;
using Snap.Hutao.Core.Database;
using Snap.Hutao.Core.ExceptionService;
using Snap.Hutao.Core.IO.Ini;
using Snap.Hutao.Core.LifeCycle;
using Snap.Hutao.Model.Entity;
using Snap.Hutao.Model.Entity.Database;
using Snap.Hutao.Service.Game.Locator;
@@ -424,4 +422,15 @@ internal sealed partial class GameService : IGameService
return (launchScheme.IsOversea && gameFileName == GenshinImpactFileName)
|| (!launchScheme.IsOversea && gameFileName == YuanShenFileName);
}
}
[ConstructorGenerated]
[Injection(InjectAs.Singleton, typeof(IGameDbSservice))]
internal sealed partial class GameDbSservice : IGameDbSservice
{
}
internal interface IGameDbSservice
{
}

View File

@@ -56,7 +56,7 @@ internal static class ProcessInterop
/// <param name="game">游戏进程</param>
/// <param name="token">取消令牌</param>
/// <returns>任务</returns>
public static Task UnlockFpsAsync(IServiceProvider serviceProvider, Process game, CancellationToken token)
public static ValueTask UnlockFpsAsync(IServiceProvider serviceProvider, Process game, CancellationToken token)
{
IGameFpsUnlocker unlocker = serviceProvider.CreateInstance<GameFpsUnlocker>(game);
UnlockTimingOptions options = new(100, 20000, 3000);