mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
20 lines
444 B
C#
20 lines
444 B
C#
using System;
|
|
using System.Reflection;
|
|
using BepInEx.Bootstrap;
|
|
|
|
namespace BepInEx.NetLauncher
|
|
{
|
|
public class NetChainloader : BaseChainloader<BasePlugin>
|
|
{
|
|
public override BasePlugin LoadPlugin(PluginInfo pluginInfo, Assembly pluginAssembly)
|
|
{
|
|
var type = pluginAssembly.GetType(pluginInfo.TypeName);
|
|
|
|
var pluginInstance = (BasePlugin)Activator.CreateInstance(type);
|
|
|
|
pluginInstance.Load();
|
|
|
|
return pluginInstance;
|
|
}
|
|
}
|
|
} |