-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.cs
More file actions
29 lines (28 loc) · 904 Bytes
/
Plugin.cs
File metadata and controls
29 lines (28 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
namespace SkipCook
{
[BepInPlugin("dev.mooskyfish.skipcook", "Skip Cook", "1.0")]
[BepInProcess("Bug Fables.exe")]
public class Plugin : BaseUnityPlugin
{
public static readonly string Version = MetadataHelper.GetMetadata(typeof(Plugin)).Version.ToString();
internal static new ManualLogSource Logger;
public static bool SkipCookToggle;
public static CodeMatcher CodeMatcher;
public static bool IsXboxVer = false;
private Harmony _harmony;
public void Awake()
{
_harmony = new Harmony("dev.mooskyfish.skipcook");
Logger = base.Logger;
if (Type.GetType("XboxOneGameData, Assembly-CSharp") is not null)
{
IsXboxVer = true;
}
_harmony.PatchAll();
}
}
}