From aa68a8f42917f7db98c2b94abb6e95c2a2947fe8 Mon Sep 17 00:00:00 2001 From: Alex Z Date: Sat, 7 Mar 2020 02:29:23 +0300 Subject: [PATCH] run game and mod cleanup --- src/UniversalValveToolbox/UI/FormMain.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UniversalValveToolbox/UI/FormMain.cs b/src/UniversalValveToolbox/UI/FormMain.cs index a374102..d582b6f 100644 --- a/src/UniversalValveToolbox/UI/FormMain.cs +++ b/src/UniversalValveToolbox/UI/FormMain.cs @@ -316,7 +316,7 @@ namespace UniversalValveToolbox { if (RUN_PROJECT_ID.Equals(selectItem.Tag) && SelectedProject != null) { var pathEngineBin = Path.Combine(SteamPathsUtil.GetSteamAppManifestDataById(SelectedEngine.Appid).Path, SelectedEngine.Bin); - Process.Start(pathEngineBin, $"-game \"{SelectedProject.Path}\" {SelectedProject.Args}"); + Process.Start(pathEngineBin, $"-steam -game \"{SelectedProject?.Path ?? ""}\" {SelectedProject.Args}"); } var selectedTool = SelectedEngine.Tools.FirstOrDefault(tool => tool.Name == selectItemText); @@ -327,7 +327,7 @@ namespace UniversalValveToolbox { var toolPath = Path.Combine(selectedEnginePath, selectedTool.Bin); if (File.Exists(toolPath)) - Process.Start(toolPath, $"{selectedTool.Args} -game \"{SelectedProject?.Path ?? ""}\""); + Process.Start(toolPath, $"-steam -game \"{SelectedProject?.Path ?? ""}\" {selectedTool.Args}"); else MessageBox.Show($"\"{selectedTool.Name}\" no found.\n{toolPath}", "Message", MessageBoxButtons.OK, MessageBoxIcon.Warning); }