mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix for issue #1486
This commit is contained in:
parent
e42dae9b93
commit
58da89e16c
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,6 +57,8 @@ namespace Wabbajack.Common
|
||||
_nullable_path = path.Replace("/", "\\").TrimEnd('\\');
|
||||
}
|
||||
|
||||
_nullable_path = _nullable_path.Replace("\\\\", "\\");
|
||||
|
||||
if (!skipValidation)
|
||||
{
|
||||
ValidateAbsolutePath();
|
||||
|
Loading…
Reference in New Issue
Block a user