mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Implement Patcher and plugin providers
This commit is contained in:
1 parent
53625800b8
commit
952c74f6fe
29 files changed
+864
-216
No files matched your search
@@ -16,7 +16,7 @@ public abstract class BaseUnityPlugin : MonoBehaviour
|
||||
/// <exception cref="InvalidOperationException">BepInPlugin attribute is missing.</exception>
|
||||
protected BaseUnityPlugin()
|
||||
{
|
||||
var metadata = MetadataHelper.GetMetadata(this);
|
||||
var metadata = MetadataHelper.GetPluginMetadata(this);
|
||||
if (metadata == null)
|
||||
throw new InvalidOperationException("Can't create an instance of " + GetType().FullName +
|
||||
" because it inherits from BaseUnityPlugin and the BepInPlugin attribute is missing.");
|
||||
@@ -27,7 +27,6 @@ public abstract class BaseUnityPlugin : MonoBehaviour
|
||||
Instance = this,
|
||||
Dependencies = MetadataHelper.GetDependencies(GetType()),
|
||||
Processes = MetadataHelper.GetAttributes<BepInProcess>(GetType()),
|
||||
Location = GetType().Assembly.Location
|
||||
};
|
||||
|
||||
Logger = BepInEx.Logging.Logger.CreateLogSource(metadata.Name);
|
||||
|
||||
Reference in new issue
Block a user