feat: Added support for creating views and drawing ImGui elemts from C#

This commit is contained in:
WerWolv
2024-03-11 21:09:45 +01:00
parent a3f550c585
commit e3565d5bcb
8 changed files with 122 additions and 43 deletions

View File

@@ -64,8 +64,15 @@ namespace ImHex
{
continue;
}
context.LoadFromStream(new MemoryStream(File.ReadAllBytes(file)));
try
{
context.LoadFromStream(new MemoryStream(File.ReadAllBytes(file)));
}
catch (Exception e)
{
Console.WriteLine("[.NET Script] Failed to load assembly: " + file + " - " + e.ToString());
}
}
// Load the script assembly