Merge pull request #1254 from DGP-Studio/develop

This commit is contained in:
DismissedLight
2024-01-03 20:02:54 +08:00
committed by GitHub
3 changed files with 12 additions and 3 deletions

View File

@@ -13,7 +13,7 @@
<Identity
Name="60568DGPStudio.SnapHutao"
Publisher="CN=35C8E923-85DF-49A7-9172-B39DC6312C52"
Version="1.9.2.0" />
Version="1.9.3.0" />
<Properties>
<DisplayName>Snap Hutao</DisplayName>

View File

@@ -13,7 +13,7 @@
<Identity
Name="60568DGPStudio.SnapHutaoDev"
Publisher="CN=35C8E923-85DF-49A7-9172-B39DC6312C52"
Version="1.9.2.0" />
Version="1.9.3.0" />
<Properties>
<DisplayName>Snap Hutao Dev</DisplayName>

View File

@@ -13,7 +13,16 @@ internal static class LaunchGameShared
{
public static LaunchScheme? GetCurrentLaunchSchemeFromConfigFile(IGameServiceFacade gameService, IInfoBarService infoBarService)
{
ChannelOptions options = gameService.GetChannelOptions();
ChannelOptions options;
try
{
options = gameService.GetChannelOptions();
}
catch (InvalidOperationException)
{
return default;
}
if (string.IsNullOrEmpty(options.ConfigFilePath))
{
try