Fixed for AMD64 compatibility

This commit is contained in:
David Anderson
2005-08-24 18:13:40 +00:00
parent d802a3c961
commit 1114443a43
3 changed files with 16 additions and 3 deletions

View File

@ -221,7 +221,17 @@ namespace AMXXRelease
public static string PropSlashes(string path)
{
return path.Replace(Path.AltDirectorySeparatorChar,Path.DirectorySeparatorChar);
char sep;
char alt;
if (Releaser.IsWindows)
{
sep = '\\';
alt = '/';
} else {
sep = '/';
alt = '\\';
}
return path.Replace(alt,sep);
}
}
}