1
0
mirror of synced 2024-11-24 06:20:11 +01:00
TaikoModStuff/Plugin.cs

49 lines
2.0 KiB
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 20:18:27 +01:00
public static ConfigEntry<int> configCustomWindowedWidth;
public static ConfigEntry<int> configCustomWindowedHeight;
public static ConfigEntry<int> configCustomFramerate;
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
2022-01-27 20:18:27 +01:00
configCustomWindowedWidth = Config.Bind("General.Resolution",
"CustomWidth",
1920,
"Custom width to use. Set to 0 to disable setting the custom resolution");
configCustomWindowedHeight = Config.Bind("General.Resolution",
"CustomHeight",
1080,
"Custom height to use");
configCustomFramerate = Config.Bind("General.Framerate",
"CustomFramerate",
60,
"Custom framerate. Use with caution");
2022-01-27 18:36:07 +01:00
var instance = new Harmony(PluginInfo.PLUGIN_NAME);
instance.PatchAll(typeof(FontChanger));
2022-01-27 20:18:27 +01:00
instance.PatchAll(typeof(CustomResolution));
2022-01-27 18:36:07 +01:00
2022-01-27 18:23:54 +01:00
// Plugin startup logic
Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
}
}
}