diff --git a/project/SPT.Launcher.Base/Controllers/GameStarter.cs b/project/SPT.Launcher.Base/Controllers/GameStarter.cs index 3f1c183..a08ac56 100644 --- a/project/SPT.Launcher.Base/Controllers/GameStarter.cs +++ b/project/SPT.Launcher.Base/Controllers/GameStarter.cs @@ -131,8 +131,17 @@ namespace SPT.Launcher WorkingDirectory = gamePath, }; - Process.Start(clientProcess); - LogManager.Instance.Info("[LaunchGame] Game process started"); + try + { + + Process.Start(clientProcess); + LogManager.Instance.Info("[LaunchGame] Game process started"); + } + catch (Exception ex) + { + LogManager.Instance.Exception(ex); + return GameStarterResult.FromError(-7); + } } return GameStarterResult.FromSuccess(); diff --git a/project/SPT.Launcher.Base/Models/Launcher/GameStarterResult.cs b/project/SPT.Launcher.Base/Models/Launcher/GameStarterResult.cs index 2c6ac9b..b397750 100644 --- a/project/SPT.Launcher.Base/Models/Launcher/GameStarterResult.cs +++ b/project/SPT.Launcher.Base/Models/Launcher/GameStarterResult.cs @@ -43,6 +43,10 @@ namespace SPT.Launcher.Models.Launcher case -6: Message = LocalizationProvider.Instance.eft_exe_not_found_warning; break; + + case -7: + Message = ":("; + break; default: Message = LocalizationProvider.Instance.login_failed; diff --git a/project/SPT.Launcher/Assets/aki-logo.png b/project/SPT.Launcher/Assets/aki-logo.png deleted file mode 100644 index 01e5a9f..0000000 Binary files a/project/SPT.Launcher/Assets/aki-logo.png and /dev/null differ diff --git a/project/SPT.Launcher/Assets/icon.ico b/project/SPT.Launcher/Assets/icon.ico deleted file mode 100644 index 50a2369..0000000 Binary files a/project/SPT.Launcher/Assets/icon.ico and /dev/null differ diff --git a/project/SPT.Launcher/Assets/spt-logo.ico b/project/SPT.Launcher/Assets/spt-logo.ico new file mode 100644 index 0000000..bc4a29f Binary files /dev/null and b/project/SPT.Launcher/Assets/spt-logo.ico differ diff --git a/project/SPT.Launcher/Assets/spt-logo.png b/project/SPT.Launcher/Assets/spt-logo.png new file mode 100644 index 0000000..967ab51 Binary files /dev/null and b/project/SPT.Launcher/Assets/spt-logo.png differ diff --git a/project/SPT.Launcher/SPT.Launcher.csproj b/project/SPT.Launcher/SPT.Launcher.csproj index 7d100f7..a32dfc4 100644 --- a/project/SPT.Launcher/SPT.Launcher.csproj +++ b/project/SPT.Launcher/SPT.Launcher.csproj @@ -5,7 +5,7 @@ win-x64 true enable - Assets\icon.ico + Assets\spt-logo.ico diff --git a/project/SPT.Launcher/Views/MainWindow.axaml b/project/SPT.Launcher/Views/MainWindow.axaml index b196a82..329a40a 100644 --- a/project/SPT.Launcher/Views/MainWindow.axaml +++ b/project/SPT.Launcher/Views/MainWindow.axaml @@ -10,7 +10,7 @@ xmlns:dialogHost="clr-namespace:DialogHost;assembly=DialogHost.Avalonia" mc:Ignorable="d" d:DesignWidth="750" d:DesignHeight="450" x:Class="SPT.Launcher.Views.MainWindow" - Icon="/Assets/icon.ico" + Icon="/Assets/spt-logo.ico" Title="SPT.Launcher" MinHeight="450" MinWidth="800" Height="450" Width="800"