Fix steam launch parameter passing

This change fixes Steam launch parameter passing.
There is still work to test and/or limit launch parameter
passing to only those libraries that support it. This will
need a bit of work. Fixes #27.
This commit is contained in:
Terry MacDonald 2021-07-25 22:10:39 +12:00
parent df2d89bb69
commit a90c555972
2 changed files with 4 additions and 4 deletions

View File

@ -757,10 +757,10 @@ namespace DisplayMagician.GameLibraries
public override Process StartGame(Game game, string gameArguments = "")
{
string address = $"steam://rungameid/{game.Id}";
string address = $@"steam://rungameid/{game.Id}";
if (!String.IsNullOrWhiteSpace(gameArguments))
{
address += "/" + gameArguments;
address += @"//" + gameArguments;
}
Process gameProcess = Process.Start(address);
return gameProcess;

View File

@ -719,10 +719,10 @@ namespace DisplayMagician.GameLibraries
public override Process StartGame(Game game, string gameArguments = "")
{
string address = $"uplay://launch/{game.Id}";
string address = $@"uplay://launch/{game.Id}";
if (String.IsNullOrWhiteSpace(gameArguments))
{
address += "/" + gameArguments;
address += @"/" + gameArguments;
}
else
{