disable concurrent launch game

This commit is contained in:
Lightczx
2023-09-26 14:16:03 +08:00
parent 53c1a0156d
commit 1f8e73f255
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ internal sealed partial class GameService : IGameService
{
string gamePath = appOptions.GamePath;
string configPath = Path.Combine(Path.GetDirectoryName(gamePath) ?? string.Empty, ConfigFileName);
bool isOversea = string.Equals(Path.GetFileName(gamePath), GenshinImpactFileName, StringComparison.Ordinal);
bool isOversea = string.Equals(Path.GetFileName(gamePath), GenshinImpactFileName, StringComparison.OrdinalIgnoreCase);
if (!File.Exists(configPath))
{

View File

@@ -179,7 +179,7 @@ internal sealed partial class LaunchGameViewModel : Abstraction.ViewModel
}
}
[Command("LaunchCommand", AllowConcurrentExecutions = true)]
[Command("LaunchCommand")]
private async Task LaunchAsync()
{
if (SelectedScheme is not null)