Implemented alternate fix for Linux paths (to-do: add case-insensitive hack later)

This commit is contained in:
ZZYZX 2019-12-14 23:43:20 +02:00
parent 2c3013f74c
commit 5295f7f590

View file

@ -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);