This instance will be upgraded to Heptapod 0.19.0rc2 on 2021-01-18 at 11:00 UTC+1 (a few minutes of downtime)

Commit cb2aea04 authored by Jesse McGrew's avatar Jesse McGrew

Fix the order of implicit include paths.

parent a716daad0387
...@@ -370,7 +370,7 @@ namespace Zilf ...@@ -370,7 +370,7 @@ namespace Zilf
{ {
if (inFile != null && mode != RunMode.Expression) if (inFile != null && mode != RunMode.Expression)
{ {
includePaths.Add(Path.GetDirectoryName(Path.GetFullPath(inFile))); includePaths.Insert(0, Path.GetDirectoryName(Path.GetFullPath(inFile)));
} }
if (includePaths.Count == 0) if (includePaths.Count == 0)
...@@ -393,7 +393,7 @@ namespace Zilf ...@@ -393,7 +393,7 @@ namespace Zilf
var candidate = Path.Combine(zilfDir, n); var candidate = Path.Combine(zilfDir, n);
if (Directory.Exists(candidate)) if (Directory.Exists(candidate))
{ {
includePaths.Insert(0, candidate); includePaths.Add(candidate);
found = true; found = true;
break; break;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment