-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cs
40 lines (31 loc) · 1.31 KB
/
main.cs
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
30
31
32
33
34
35
36
37
38
39
40
using AmongUs.GameOptions;
using BepInEx;
using BepInEx.Unity.IL2CPP;
using HarmonyLib;
using System;
using System.Reflection;
[assembly: AssemblyFileVersion(UnlockDleks.Main.PluginVersion)]
[assembly: AssemblyInformationalVersion(UnlockDleks.Main.PluginVersion)]
[assembly: AssemblyVersion(UnlockDleks.Main.PluginVersion)]
namespace UnlockDleks;
[BepInPlugin(PluginGuid, "UnlockDleks", PluginVersion)]
[BepInIncompatibility("com.0xdrmoe.townofhostenhanced")]
[BepInProcess("Among Us.exe")]
public class Main : BasePlugin
{
public static readonly string ModName = "Unlock Dleks";
public static readonly string ForkId = "Unlock Dleks";
public const string PluginVersion = "1.1.0";
public const string PluginDisplayVersion = "1.1.0";
public const string PluginGuid = "com.tommyxl.unlockdleksehT";
public Main Instance;
public Harmony Harmony { get; } = new Harmony(PluginGuid);
public Version version = Version.Parse(PluginVersion);
public static NormalGameOptionsV08 NormalOptions => GameOptionsManager.Instance.currentNormalGameOptions;
public static HideNSeekGameOptionsV08 HideNSeekOptions => GameOptionsManager.Instance.currentHideNSeekGameOptions;
public override void Load()
{
Instance = this;
Harmony.PatchAll();
}
}