This commit is contained in:
STAM 2022-04-13 14:46:30 +03:00
parent bc48aecee1
commit e97c63c077
Signed by: stam
GPG Key ID: E149C3760CFA3C7E
2 changed files with 12 additions and 9 deletions

View File

@ -388,15 +388,15 @@ namespace UniversalValveToolbox {
if (!finalArg.Contains("-game")) { if (!finalArg.Contains("-game")) {
finalArg += $" -game \"{SelectedProject?.Path ?? string.Empty}\" "; finalArg += $" -game \"{SelectedProject?.Path ?? string.Empty}\" ";
} }
Process.Start(toolPath, finalArg);
SteamClient.Shutdown(); // SteamClient.Shutdown();
SteamClient.Init(Convert.ToUInt32(SelectedEngine.Appid)); // SteamClient.Init(Convert.ToUInt32(SelectedEngine.Appid));
var process = Process.Start(toolPath, finalArg); // var process = Process.Start(toolPath, finalArg);
process.EnableRaisingEvents = true; // process.EnableRaisingEvents = true;
process.Exited += (a, b) => { // process.Exited += (a, b) => {
SteamClient.Shutdown(); // SteamClient.Shutdown();
SteamClient.Init(480); // SteamClient.Init(480);
}; // };
} }
else else

View File

@ -363,6 +363,9 @@
<None Include="json\engines\243730_ssdk2013sp.json"> <None Include="json\engines\243730_ssdk2013sp.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None> </None>
<None Include="json\projects\bst.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="json\projects\test project.json" /> <None Include="json\projects\test project.json" />
<None Include="json\settings.json" /> <None Include="json\settings.json" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">