Initial commit
This commit is contained in:
24
Core/Plugin.cs
Normal file
24
Core/Plugin.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using BepInEx.Logging;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace PhotonLogger.Core;
|
||||
|
||||
public static class LoggerPlugin
|
||||
{
|
||||
public static ManualLogSource Log = Logger.CreateLogSource("PhotonLogger");
|
||||
|
||||
public static Harmony harmony = new("dev.proxnet.photon.logger");
|
||||
|
||||
public static void Load()
|
||||
{
|
||||
harmony.PatchAll();
|
||||
SocketProvider.Instance.Connect();
|
||||
}
|
||||
|
||||
public static void Unload()
|
||||
{
|
||||
harmony.UnpatchSelf();
|
||||
SocketProvider.Instance.Close();
|
||||
Log.LogInfo("Unloading");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user