diff --git a/Source/Core/ZDoom/DecorateParser.cs b/Source/Core/ZDoom/DecorateParser.cs
index b2d6dd4b4a38c687afb9f64dedb1b8ea1d579db5..b8cfb303cdd3e9976c8258f4046228c32bfb1e48 100755
--- a/Source/Core/ZDoom/DecorateParser.cs
+++ b/Source/Core/ZDoom/DecorateParser.cs
@@ -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;
diff --git a/Source/Core/ZDoom/GldefsParser.cs b/Source/Core/ZDoom/GldefsParser.cs
index ca112e494a76d79e3b45f569805835ba5327a7cc..1ad376b2dbc93ba201db822f5d4caf02a64e964a 100755
--- a/Source/Core/ZDoom/GldefsParser.cs
+++ b/Source/Core/ZDoom/GldefsParser.cs
@@ -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;
diff --git a/Source/Core/ZDoom/MapinfoParser.cs b/Source/Core/ZDoom/MapinfoParser.cs
index 0edeb04d1841a7bc582adbc2d9aad1c83434e3b5..fc4961d0aba9328d5bf456f59a9f3ea8c639c069 100755
--- a/Source/Core/ZDoom/MapinfoParser.cs
+++ b/Source/Core/ZDoom/MapinfoParser.cs
@@ -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;
diff --git a/Source/Core/ZDoom/ModeldefParser.cs b/Source/Core/ZDoom/ModeldefParser.cs
index 6303b9381b5b51ce77375a96ccbe68e843eda592..facb51a05dff18c4a2798c583532e1ac8245fdf4 100755
--- a/Source/Core/ZDoom/ModeldefParser.cs
+++ b/Source/Core/ZDoom/ModeldefParser.cs
@@ -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;
diff --git a/Source/Core/ZDoom/ZScriptParser.cs b/Source/Core/ZDoom/ZScriptParser.cs
index 14abfdead4d0ed7c5a71b5bfaafd7432e2e0f613..3f3125c789b436a5d09e0892f49829e62a8d51c7 100755
--- a/Source/Core/ZDoom/ZScriptParser.cs
+++ b/Source/Core/ZDoom/ZScriptParser.cs
@@ -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;