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;