mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
package convert fixed
This commit is contained in:
@@ -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
|
||||
{
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user