From 9d439e3d12c69c743a8a564e93e4a5cf77573a03 Mon Sep 17 00:00:00 2001 From: MikeMaximus Date: Thu, 4 Oct 2018 23:46:10 -0600 Subject: [PATCH] Fixed include/exclude builder not resolving paths --- GBM/Forms/frmGameManager.vb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/GBM/Forms/frmGameManager.vb b/GBM/Forms/frmGameManager.vb index d45b4b1..9d2694f 100644 --- a/GBM/Forms/frmGameManager.vb +++ b/GBM/Forms/frmGameManager.vb @@ -561,15 +561,18 @@ Public Class frmGameManager Private Function GetBuilderRoot() As String Dim sRoot As String = String.Empty + Dim sPath As String = txtSavePath.Text - If Path.IsPathRooted(txtSavePath.Text) Then - If Directory.Exists(txtSavePath.Text) Then - sRoot = txtSavePath.Text + If Not Settings.ShowResolvedPaths Then sPath = mgrPath.ReplaceSpecialPaths(txtSavePath.Text) + + If Path.IsPathRooted(sPath) Then + If Directory.Exists(sPath) Then + sRoot = sPath End If Else If txtAppPath.Text <> String.Empty Then - If Directory.Exists(txtAppPath.Text & Path.DirectorySeparatorChar & txtSavePath.Text) Then - sRoot = txtAppPath.Text & Path.DirectorySeparatorChar & txtSavePath.Text + If Directory.Exists(txtAppPath.Text & Path.DirectorySeparatorChar & sPath) Then + sRoot = txtAppPath.Text & Path.DirectorySeparatorChar & sPath End If End If End If