Normalize path delimiters

This commit is contained in:
arookas 2016-02-01 06:17:22 -05:00
parent bb28e47117
commit 4d86f6449b

View file

@ -44,6 +44,7 @@ namespace arookas {
public override sunImportResult ResolveImport(string name, out sunScriptFile file) {
file = null;
var fullPath = "";
name = name.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
if (Path.IsPathRooted(name)) {
// if the path is absolute, just use it directly
fullPath = name;