NetChainloader.cs 444 B

1234567891011121314151617181920
  1. using System;
  2. using System.Reflection;
  3. using BepInEx.Bootstrap;
  4. namespace BepInEx.NetLauncher
  5. {
  6. public class NetChainloader : BaseChainloader<BasePlugin>
  7. {
  8. public override BasePlugin LoadPlugin(PluginInfo pluginInfo, Assembly pluginAssembly)
  9. {
  10. var type = pluginAssembly.GetType(pluginInfo.TypeName);
  11. var pluginInstance = (BasePlugin)Activator.CreateInstance(type);
  12. pluginInstance.Load();
  13. return pluginInstance;
  14. }
  15. }
  16. }