mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-22 20:02:48 +00:00
Fix directory separators
Path.DirectorySeparatorChar is a forward slash on Linux/Unix, so it ended up preventing DECORATE and ZSCRIPT code from being loaded on Linux.
This commit is contained in:
parent
263c555bb4
commit
96208f7166
5 changed files with 5 additions and 5 deletions
|
@ -231,7 +231,7 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
}
|
||||
|
||||
//mxd. Backward slashes are not supported
|
||||
if(filename.Contains(Path.DirectorySeparatorChar.ToString(CultureInfo.InvariantCulture)))
|
||||
if(filename.Contains("\\"))
|
||||
{
|
||||
ReportError("Only forward slashes are supported by ZDoom");
|
||||
return false;
|
||||
|
|
|
@ -805,7 +805,7 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
}
|
||||
|
||||
// Backward slashes are not supported
|
||||
if(includelump.Contains(Path.DirectorySeparatorChar.ToString(CultureInfo.InvariantCulture)))
|
||||
if(includelump.Contains("\\"))
|
||||
{
|
||||
ReportError("Only forward slashes are supported by GZDoom");
|
||||
return false;
|
||||
|
|
|
@ -227,7 +227,7 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
}
|
||||
|
||||
// Backward slashes are not supported
|
||||
if(includelump.Contains(Path.DirectorySeparatorChar.ToString(CultureInfo.InvariantCulture)))
|
||||
if(includelump.Contains("\\"))
|
||||
{
|
||||
ReportError("Only forward slashes are supported by ZDoom");
|
||||
return false;
|
||||
|
|
|
@ -114,7 +114,7 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
}
|
||||
|
||||
//mxd. Backward slashes are not supported
|
||||
if (filename.Contains(Path.DirectorySeparatorChar.ToString(CultureInfo.InvariantCulture)))
|
||||
if (filename.Contains("\\"))
|
||||
{
|
||||
ReportError("Only forward slashes are supported by ZDoom");
|
||||
return false;
|
||||
|
|
|
@ -273,7 +273,7 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
}
|
||||
|
||||
//mxd. Backward slashes are not supported
|
||||
if (filename.Contains(Path.DirectorySeparatorChar.ToString(CultureInfo.InvariantCulture)))
|
||||
if (filename.Contains("\\"))
|
||||
{
|
||||
ReportError("Only forward slashes are supported by ZDoom");
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue