mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
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:
parent
df2d89bb69
commit
a90c555972
@ -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;
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user