1
0
mirror of synced 2024-11-27 23:40:49 +01:00
TaikoModStuff/Plugin.cs

28 lines
905 B
C#
Raw Normal View History

2022-01-27 18:23:54 +01:00
using BepInEx;
using BepInEx.Configuration;
2022-01-27 18:36:07 +01:00
using HarmonyLib;
2022-01-27 18:23:54 +01:00
namespace TaikoModStuff
{
2022-01-27 18:36:07 +01:00
[BepInPlugin("com.github.Repflez.TaikoModStuff", PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
2022-01-27 18:23:54 +01:00
public class Plugin : BaseUnityPlugin
{
public static ConfigEntry<bool> configForceFontChange;
2022-01-27 18:23:54 +01:00
private void Awake()
{
// Add configurations
configForceFontChange = Config.Bind("General.Toggles",
"ForceFontChange",
false,
"Force the game font to the JP font");
2022-01-27 18:36:07 +01:00
var instance = new Harmony(PluginInfo.PLUGIN_NAME);
instance.PatchAll(typeof(FontChanger));
2022-01-27 18:23:54 +01:00
// Plugin startup logic
Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
}
}
}