Allow game variables in working dir parameter

This commit is contained in:
Pat Hartl 2023-01-18 19:30:08 -06:00
parent b52ee7e6de
commit 47d0fa1d93

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
});
}