From 47d0fa1d935774eef34fd4ed4f9c6b33773401ec Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Wed, 18 Jan 2023 19:30:08 -0600 Subject: [PATCH] Allow game variables in working dir parameter --- LANCommander.Playnite.Extension/LANCommanderLibraryPlugin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LANCommander.Playnite.Extension/LANCommanderLibraryPlugin.cs b/LANCommander.Playnite.Extension/LANCommanderLibraryPlugin.cs index 64d4186..d88b6bf 100644 --- a/LANCommander.Playnite.Extension/LANCommanderLibraryPlugin.cs +++ b/LANCommander.Playnite.Extension/LANCommanderLibraryPlugin.cs @@ -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 }); }