Allow for special pathing like %TEMP% or %USERPROFILE% when handling save paths
This commit is contained in:
parent
5a2fe85903
commit
9cfca95f09
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ namespace LANCommander.PlaynitePlugin.Services
|
||||||
#region Add files from defined paths
|
#region Add files from defined paths
|
||||||
foreach (var savePath in manifest.SavePaths.Where(sp => sp.Type == "File"))
|
foreach (var savePath in manifest.SavePaths.Where(sp => sp.Type == "File"))
|
||||||
{
|
{
|
||||||
var localPath = savePath.Path.Replace('/', '\\').Replace("{InstallDir}", game.InstallDirectory);
|
var localPath = Environment.ExpandEnvironmentVariables(savePath.Path.Replace('/', '\\').Replace("{InstallDir}", game.InstallDirectory));
|
||||||
|
|
||||||
if (Directory.Exists(localPath))
|
if (Directory.Exists(localPath))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue