feat: Add the actual code of the mod
This commit is contained in:
parent
1a8bfa5669
commit
6d6374eda3
3
.gitignore
vendored
3
.gitignore
vendored
@ -361,3 +361,6 @@ MigrationBackup/
|
|||||||
|
|
||||||
# Fody - auto-generated XML schema
|
# 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 BepInEx;
|
||||||
|
using HarmonyLib;
|
||||||
|
|
||||||
namespace TaikoModStuff
|
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
|
public class Plugin : BaseUnityPlugin
|
||||||
{
|
{
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
var instance = new Harmony(PluginInfo.PLUGIN_NAME);
|
||||||
|
instance.PatchAll(typeof(FontChanger));
|
||||||
|
|
||||||
// Plugin startup logic
|
// Plugin startup logic
|
||||||
Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
|
Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!");
|
||||||
}
|
}
|
||||||
|
@ -19,4 +19,11 @@
|
|||||||
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
|
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
|
||||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="Assembly-CSharp">
|
||||||
|
<HintPath>lib\Assembly-CSharp.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
0
lib/.gitkeep
Normal file
0
lib/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user