Fix Linux issues with the scripting system

This fixes bugs in the scripting system in which scripts does not compile and run on Linux.

This commit also changes wording around the logging in the scripting system to avoid confusion between script errors and regular script compilation.
This commit is contained in:
breadbyte 2022-10-14 02:31:31 +08:00
parent dee085686f
commit 023cc2e2d4
No known key found for this signature in database
GPG key ID: 81897669486FFAFC
2 changed files with 19 additions and 19 deletions

View file

@ -24,7 +24,7 @@ namespace DynamicRun.Builder
GC.WaitForPendingFinalizers();
}
ConsoleIO.WriteLogLine(assemblyLoadContextWeakRef.Item1.IsAlive ? "Script failed to clean-up" : "Script finished!");
ConsoleIO.WriteLogLine(assemblyLoadContextWeakRef.Item1.IsAlive ? "Script continues to run." : "Script finished!");
return assemblyLoadContextWeakRef.Item2;
}