Allow game variables in working dir parameter

dashboard
Pat Hartl 2023-01-18 19:30:08 -06:00
parent b52ee7e6de
commit 47d0fa1d93
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ namespace LANCommander.PlaynitePlugin
Name = action.Name,
Arguments = action.Arguments,
Path = PlayniteApi.ExpandGameVariables(game, action.Path?.Replace('/', Path.DirectorySeparatorChar)),
WorkingDir = action.WorkingDirectory?.Replace('/', Path.DirectorySeparatorChar) ?? game.InstallDirectory,
WorkingDir = PlayniteApi.ExpandGameVariables(game, action.WorkingDirectory?.Replace('/', Path.DirectorySeparatorChar) ?? game.InstallDirectory),
IsPlayAction = action.IsPrimaryAction || isFirstAction
});
}