12345678910111213141516171819202122232425262728 |
- using BepInEx.Configuration;
- using BepInEx.Logging;
- namespace BepInEx.IL2CPP
- {
- public abstract class BasePlugin
- {
- public ManualLogSource Log { get; }
- public ConfigFile Config { get; }
- protected BasePlugin()
- {
- var metadata = MetadataHelper.GetMetadata(this);
- Log = Logger.CreateLogSource(metadata.Name);
- Config = new ConfigFile(Utility.CombinePaths(Paths.ConfigPath, metadata.GUID + ".cfg"), false, metadata);
- }
- public abstract void Load();
- public virtual bool Unload()
- {
- return false;
- }
- }
- }
|