Fixed include/exclude builder not resolving paths

This commit is contained in:
MikeMaximus
2018-10-04 23:46:10 -06:00
parent 42726ac0ab
commit 9d439e3d12
+8 -5
View File
@@ -561,15 +561,18 @@ Public Class frmGameManager
Private Function GetBuilderRoot() As String Private Function GetBuilderRoot() As String
Dim sRoot As String = String.Empty Dim sRoot As String = String.Empty
Dim sPath As String = txtSavePath.Text
If Path.IsPathRooted(txtSavePath.Text) Then If Not Settings.ShowResolvedPaths Then sPath = mgrPath.ReplaceSpecialPaths(txtSavePath.Text)
If Directory.Exists(txtSavePath.Text) Then
sRoot = txtSavePath.Text If Path.IsPathRooted(sPath) Then
If Directory.Exists(sPath) Then
sRoot = sPath
End If End If
Else Else
If txtAppPath.Text <> String.Empty Then If txtAppPath.Text <> String.Empty Then
If Directory.Exists(txtAppPath.Text & Path.DirectorySeparatorChar & txtSavePath.Text) Then If Directory.Exists(txtAppPath.Text & Path.DirectorySeparatorChar & sPath) Then
sRoot = txtAppPath.Text & Path.DirectorySeparatorChar & txtSavePath.Text sRoot = txtAppPath.Text & Path.DirectorySeparatorChar & sPath
End If End If
End If End If
End If End If