Fix for issue #1486

This commit is contained in:
Timothy Baldridge 2021-06-12 14:31:35 -06:00
parent e42dae9b93
commit 58da89e16c
2 changed files with 9 additions and 0 deletions

View File

@ -17,5 +17,12 @@ namespace Wabbajack.Common.Test
Assert.Equal(game, result.Game);
}
}
[Fact]
public void GamePathsDontIncludeDuplicateBackslash()
{
var path = Game.Morrowind.MetaData().GameLocation();
Assert.DoesNotContain("\\\\", path.ToString());
}
}
}

View File

@ -57,6 +57,8 @@ namespace Wabbajack.Common
_nullable_path = path.Replace("/", "\\").TrimEnd('\\');
}
_nullable_path = _nullable_path.Replace("\\\\", "\\");
if (!skipValidation)
{
ValidateAbsolutePath();