-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.cs
More file actions
22 lines (20 loc) · 794 Bytes
/
Copy pathPlugin.cs
File metadata and controls
22 lines (20 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using System.Reflection;
namespace PotionCraftAlchemyMachineRecipes
{
[BepInPlugin("com.fahlgorithm.potioncraftalchemymachinerecipies", "PotionCraftAlchemyMachineRecipes", "1.1.0.0")]
[BepInProcess("Potion Craft.exe")]
public class Plugin : BaseUnityPlugin
{
public static ManualLogSource PluginLogger {get; private set; }
private void Awake()
{
PluginLogger = Logger;
PluginLogger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), "com.fahlgorithm.potioncraftalchemymachinerecipies");
PluginLogger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID}: Patch Succeeded!");
}
}
}