fix bugs and get answers
This commit is contained in:
parent
26e467860b
commit
b44a382e32
@ -1080,6 +1080,10 @@ public abstract class Oms
|
|||||||
|
|
||||||
// get a list of all library loaders we have implemented
|
// get a list of all library loaders we have implemented
|
||||||
LibraryPlugin[] plugins = Plugin.Get<LibraryPlugin>();
|
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)
|
foreach (LibraryPlugin plugin in plugins)
|
||||||
{
|
{
|
||||||
Console.WriteLine("found plugin: {0}", plugin.GetType().FullName);
|
Console.WriteLine("found plugin: {0}", plugin.GetType().FullName);
|
||||||
|
|||||||
@ -36,8 +36,6 @@ public class McxMiniLibraryPlugin : LibraryPlugin
|
|||||||
|
|
||||||
protected override void LoadInternal(Stream stream, Library library)
|
protected override void LoadInternal(Stream stream, Library library)
|
||||||
{
|
{
|
||||||
base.LoadInternal(stream, library);
|
|
||||||
|
|
||||||
BinaryReader r = new BinaryReader(stream);
|
BinaryReader r = new BinaryReader(stream);
|
||||||
|
|
||||||
string signature = r.ReadFixedString(4);
|
string signature = r.ReadFixedString(4);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user