mirror of
https://github.com/EpicMorg/UniversalValveToolbox.git
synced 2024-12-27 07:05:29 +03:00
run game and mod cleanup
This commit is contained in:
parent
d14feb1112
commit
aa68a8f429
@ -316,7 +316,7 @@ namespace UniversalValveToolbox {
|
|||||||
if (RUN_PROJECT_ID.Equals(selectItem.Tag) && SelectedProject != null) {
|
if (RUN_PROJECT_ID.Equals(selectItem.Tag) && SelectedProject != null) {
|
||||||
var pathEngineBin = Path.Combine(SteamPathsUtil.GetSteamAppManifestDataById(SelectedEngine.Appid).Path, SelectedEngine.Bin);
|
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);
|
var selectedTool = SelectedEngine.Tools.FirstOrDefault(tool => tool.Name == selectItemText);
|
||||||
@ -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, $"-steam -game \"{SelectedProject?.Path ?? ""}\" {selectedTool.Args}");
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user