2022-01-27 10:36:07 -07:00
|
|
|
|
using HarmonyLib;
|
|
|
|
|
|
|
|
|
|
namespace TaikoModStuff
|
|
|
|
|
{
|
|
|
|
|
internal class FontChanger
|
|
|
|
|
{
|
|
|
|
|
[HarmonyPatch(typeof(WordDataManager), "GetFontType")]
|
|
|
|
|
[HarmonyPostfix]
|
|
|
|
|
static void GetFontType_Patched(ref int __result)
|
|
|
|
|
{
|
2022-01-27 11:34:10 -07:00
|
|
|
|
if (Plugin.configForceFontChange.Value)
|
|
|
|
|
__result = 0; // Force the font to the JP one.
|
2022-01-27 10:36:07 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|