fix bugs and get answers

This commit is contained in:
Michael Becker 2024-08-25 14:11:45 -04:00
parent 26e467860b
commit b44a382e32
2 changed files with 4 additions and 2 deletions

View File

@ -1080,6 +1080,10 @@ public abstract class Oms
// get a list of all library loaders we have implemented
LibraryPlugin[] plugins = Plugin.Get<LibraryPlugin>();
if (plugins.Length == 0)
{
throw new InvalidOperationException("No plugins available in '" + System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "'");
}
foreach (LibraryPlugin plugin in plugins)
{
Console.WriteLine("found plugin: {0}", plugin.GetType().FullName);

View File

@ -36,8 +36,6 @@ public class McxMiniLibraryPlugin : LibraryPlugin
protected override void LoadInternal(Stream stream, Library library)
{
base.LoadInternal(stream, library);
BinaryReader r = new BinaryReader(stream);
string signature = r.ReadFixedString(4);