Skip to content

Commit

Permalink
Merge branch '2024-09-18-res-path' into 2024-09-14-audio-reloads
Browse files Browse the repository at this point in the history
# Conflicts:
#	Robust.Shared/Utility/ResPath.cs
  • Loading branch information
metalgearsloth committed Sep 28, 2024
2 parents a27c27a + 432cc49 commit 361fb8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Robust.Shared/Utility/ResPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ namespace Robust.Shared.Utility;

public ResPath(string canonPath)
{
CanonPath = canonPath.Replace(Path.DirectorySeparatorChar, Separator);
// Paths should never have non-standardised directory separators passed in, the caller should have already sanitised it.
DebugTools.Assert(!canonPath.Contains('\\'));
CanonPath = canonPath;
}

/// <summary>
Expand Down

0 comments on commit 361fb8e

Please sign in to comment.