This commit is contained in:
Alex Z 2020-03-07 02:15:59 +03:00
parent 174f7baa16
commit d14feb1112

View File

@ -327,7 +327,7 @@ namespace UniversalValveToolbox {
var toolPath = Path.Combine(selectedEnginePath, selectedTool.Bin); var toolPath = Path.Combine(selectedEnginePath, selectedTool.Bin);
if (File.Exists(toolPath)) if (File.Exists(toolPath))
Process.Start(toolPath, $"{selectedTool.Args} -game \"{SelectedProject.Path}\""); Process.Start(toolPath, $"{selectedTool.Args} -game \"{SelectedProject?.Path ?? ""}\"");
else else
MessageBox.Show($"\"{selectedTool.Name}\" no found.\n{toolPath}", "Message", MessageBoxButtons.OK, MessageBoxIcon.Warning); MessageBox.Show($"\"{selectedTool.Name}\" no found.\n{toolPath}", "Message", MessageBoxButtons.OK, MessageBoxIcon.Warning);
} }