using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Core.Logging.Interpolation;
using BepInEx.Logging;
using BepInEx.Unity.IL2CPP;
using HarmonyLib;
using TMPro;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
[assembly: AssemblyCompany("no_fonts")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+df3ea7748d39e20cb0422bfb0554b4507e83a11e")]
[assembly: AssemblyProduct("no_fonts")]
[assembly: AssemblyTitle("no_fonts")]
[assembly: SecurityPermission(8, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace no_fonts;
internal class NoFonts_Component : MonoBehaviour
{
private void Awake()
{
Harmony.CreateAndPatchAll(typeof(NoFonts_Component), (string)null);
}
[HarmonyPostfix]
[HarmonyPatch(typeof(TextMeshProUGUI), "Awake")]
private static void OverrideAwake(TextMeshProUGUI __instance)
{
((TMP_Text)__instance).font = null;
}
}
[BepInPlugin("no_fonts", "No Fonts", "0.0.5")]
public class NoFonts : BasePlugin
{
internal static ManualLogSource Log;
public override void Load()
{
//IL_001e: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Expected O, but got Unknown
Log = ((BasePlugin)this).Log;
((BasePlugin)this).AddComponent<NoFonts_Component>();
ManualLogSource log = Log;
bool flag = default(bool);
BepInExInfoLogInterpolatedStringHandler val = new BepInExInfoLogInterpolatedStringHandler(36, 0, ref flag);
if (flag)
{
((BepInExLogInterpolatedStringHandler)val).AppendLiteral("Plugin no_fonts loaded successfully.");
}
log.LogInfo(val);
}
}