SteamGame.IsRunning now works correctly

Changed from using the Steam 'Running' Registry
Key to using an actual Process detection method.
Now works reliably and waits as expected!
This commit is contained in:
Terry MacDonald
2020-10-13 21:25:10 +13:00
parent 706c225dc7
commit 86776f1aba
2 changed files with 14 additions and 2 deletions

View File

@ -679,6 +679,9 @@ namespace HeliosPlus
}*/
// Wait for the game to exit
if (steamGameToRun.IsRunning)
{
while (true)
@ -690,6 +693,7 @@ namespace HeliosPlus
Thread.Sleep(300);
}
Console.WriteLine($"{steamGameToRun.GameName} has been exited. Now continuing with cleanup tasks.");
}
// Remove the status notification icon from the status area