From 5295f7f5906c075832df6b0a81a116205cd2dc37 Mon Sep 17 00:00:00 2001 From: ZZYZX Date: Sat, 14 Dec 2019 23:43:20 +0200 Subject: [PATCH] Implemented alternate fix for Linux paths (to-do: add case-insensitive hack later) --- Source/Core/Config/CompilerInfo.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Config/CompilerInfo.cs b/Source/Core/Config/CompilerInfo.cs index fc868315..c91857a8 100755 --- a/Source/Core/Config/CompilerInfo.cs +++ b/Source/Core/Config/CompilerInfo.cs @@ -77,9 +77,9 @@ namespace CodeImp.DoomBuilder.Config { if(de.Key.ToString() != "interface" && de.Key.ToString() != "program") { - //mxd - string include = de.Value.ToString().Replace(System.IO.Path.AltDirectorySeparatorChar, System.IO.Path.DirectorySeparatorChar); - if(files.Contains(include)) + //mxd + string include = de.Value.ToString().Replace('\\', '/'); + if (files.Contains(include)) General.ErrorLogger.Add(ErrorType.Warning, "Include file \"" + de.Value + "\" is double defined in \"" + name + "\" compiler configuration"); else files.Add(include);