Skip to content

Commit

Permalink
fix template errors (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhantomGamers authored Jun 18, 2024
1 parent 78da508 commit 72818a0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BepInEx;
using BepInEx.Logging;

namespace BepInEx5.PluginTemplate;

Expand All @@ -10,7 +11,7 @@ public class Plugin : BaseUnityPlugin
private void Awake()
{
// Plugin startup logic
this.Logger = Logger;
Logger = base.Logger;
Logger.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!");
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BepInEx;
using BepInEx.Logging;
using BepInEx.NET.Common;

namespace BepInEx6.PluginTemplate.NET.CoreCLR;
Expand All @@ -11,7 +12,7 @@ public class Plugin : BasePlugin
public override void Load()
{
// Plugin startup logic
this.Log = base.Log;
Log = base.Log;
Log.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!");
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BepInEx;
using BepInEx.Logging;
using BepInEx.NET.Common;

namespace BepInEx6.PluginTemplate.NET.Framework;
Expand All @@ -11,7 +12,7 @@ public class Plugin : BasePlugin
public override void Load()
{
// Plugin startup logic
this.Log = base.Log;
Log = base.Log;
Log.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!");
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BepInEx;
using BepInEx.Logging;
using BepInEx.Unity.IL2CPP;

namespace BepInEx6.PluginTemplate.Unity.Il2Cpp;
Expand All @@ -11,7 +12,7 @@ public class Plugin : BasePlugin
public override void Load()
{
// Plugin startup logic
this.Log = base.Log;
Log = base.Log;
Log.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!");
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BepInEx;
using BepInEx.Logging;
using BepInEx.Unity.Mono;

namespace BepInEx6.PluginTemplate.Unity.Mono;
Expand All @@ -11,7 +12,7 @@ public class Plugin : BaseUnityPlugin
private void Awake()
{
// Plugin startup logic
this.Logger = base.Logger;
Logger = base.Logger;
Logger.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!");
}
}

0 comments on commit 72818a0

Please sign in to comment.