From f7d481dda69a6a4964d41d3558a215049e260077 Mon Sep 17 00:00:00 2001 From: js6pak Date: Sat, 3 Apr 2021 13:32:28 +0200 Subject: [PATCH] Add auto BepInPlugin back --- BepInEx.Core/Contract/Attributes.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/BepInEx.Core/Contract/Attributes.cs b/BepInEx.Core/Contract/Attributes.cs index 46d6024c..9abf847c 100644 --- a/BepInEx.Core/Contract/Attributes.cs +++ b/BepInEx.Core/Contract/Attributes.cs @@ -19,14 +19,14 @@ namespace BepInEx [AttributeUsage(AttributeTargets.Class)] public class BepInPlugin : Attribute { - /// The unique identifier of the plugin. Should not change between plugin versions. - /// The user friendly name of the plugin. Is able to be changed between versions. - /// The specific version of the plugin. - public BepInPlugin(string GUID, string Name, string Version) + /// The unique identifier of the plugin. Should not change between plugin versions. + /// The user friendly name of the plugin. Is able to be changed between versions. + /// The specific version of the plugin. + public BepInPlugin(string guid, string name = null, string version = null) { - this.GUID = GUID; - this.Name = Name; - this.Version = TryParseLongVersion(Version); + this.GUID = guid; + this.Name = name; + this.Version = TryParseLongVersion(version); } ///