Added Uplay to RunShortcut

HeliosPlus now runs Uplay Games and
correctly waits until they have exited before
changing back. It won't wait for Uplay updates
however, as I really don't know how Uplay
marks things as being updated. So I don't
know how to look for the updates occurring!
This commit is contained in:
Terry MacDonald
2020-11-15 21:06:38 +13:00
parent c7444e379c
commit a56e68d94e
3 changed files with 49 additions and 19 deletions

View File

@ -731,7 +731,7 @@ namespace HeliosPlus
}
// Start the URI Handler to run Uplay
Console.WriteLine($"Starting Steam Game: {uplayGameToRun.Name}");
Console.WriteLine($"Starting Uplay Game: {uplayGameToRun.Name}");
var uplayProcess = Process.Start(address);
// Wait for Steam game to update if needed
@ -745,10 +745,10 @@ namespace HeliosPlus
Thread.Sleep(300);
if (!uplayGameToRun.IsUpdating)
/*if (!uplayGameToRun.IsUpdating)
{
ticks += 300;
}
}*/
}
// Store the Steam Process ID for later