Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle committed Jan 8, 2025
1 parent d85fadf commit b334e2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DMCompiler/DMCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ public void AddResourceDirectory(string dir) {
}

// Adds the root of the DM project to FILE_DIR
compiler.AddResourceDirectory(Path.GetDirectoryName(files[0]) ?? "/");
var dirName = Path.GetDirectoryName(files[0]);
compiler.AddResourceDirectory(string.IsNullOrEmpty(dirName) ? "/" : dirName);

string compilerDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? string.Empty;
string dmStandardDirectory = Path.Join(compilerDirectory, "DMStandard");
Expand Down

0 comments on commit b334e2f

Please sign in to comment.