feat: Add the actual code of the mod
This commit is contained in:
parent
1a8bfa5669
commit
6d6374eda3
5
.gitignore
vendored
5
.gitignore
vendored
@ -360,4 +360,7 @@ MigrationBackup/
|
||||
.ionide/
|
||||
|
||||
# Fody - auto-generated XML schema
|
||||
FodyWeavers.xsd
|
||||
FodyWeavers.xsd
|
||||
|
||||
# Ignore game data
|
||||
lib/Assembly-CSharp.dll
|
19
FontChanger.cs
Normal file
19
FontChanger.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using HarmonyLib;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TaikoModStuff
|
||||
{
|
||||
internal class FontChanger
|
||||
{
|
||||
[HarmonyPatch(typeof(WordDataManager), "GetFontType")]
|
||||
[HarmonyPostfix]
|
||||
static void GetFontType_Patched(ref int __result)
|
||||
{
|
||||
__result = 0; // Force the font to the JP one.
|
||||
}
|
||||
}
|
||||
}
|
@ -1,12 +1,17 @@
|
||||
using BepInEx;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace TaikoModStuff
|
||||
{
|
||||
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
|
||||
[BepInPlugin("com.github.Repflez.TaikoModStuff", PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
|
||||
public class Plugin : BaseUnityPlugin
|
||||
{
|
||||
private void Awake()
|
||||
{
|
||||
|
||||
var instance = new Harmony(PluginInfo.PLUGIN_NAME);
|
||||
instance.PatchAll(typeof(FontChanger));
|
||||
|
||||
// Plugin startup logic
|
||||
Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
|
||||
}
|
||||
|
@ -19,4 +19,11 @@
|
||||
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
|
||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Assembly-CSharp">
|
||||
<HintPath>lib\Assembly-CSharp.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
0
lib/.gitkeep
Normal file
0
lib/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user