Files
AlwaysRecFace/Plugin.cs
2026-05-15 03:20:19 +00:00

40 lines
1.0 KiB
C#

using BepInEx;
using BepInEx.Logging;
using BepInEx.Unity.IL2CPP;
using HarmonyLib;
using undead_universal_patch_il2cpp.Core;
using System.Reflection;
namespace AlwaysRecFace;
[BepInDependency("dev.proxnet.recroom.universalpatch.noneac.il2cpp")]
[BepInPlugin("dev.proxnet.recroom.alwaysrecface", "AlwaysRecFace", "1.0.0")]
public class Plugin : BasePlugin
{
internal static new ManualLogSource Log = new("ARF");
internal static Harmony _hi = new("dev.proxnet.recroom.alwaysrecface");
public override void Load()
{
Log = base.Log;
Log.LogInfo($"Always RecFace on loading screen.");
_hi.PatchAll();
}
}
[HarmonyPatch]
public class AlwaysRecFace
{
static PatchTypesResult typesResult = Util.PreparePatchTypes(
"Always RecFace on loading screen",
"LoadingScreen",
"EFNNDDKHAMB"
);
static bool Prepare() => typesResult.Success;
static MethodBase TargetMethod() => typesResult.Method;
static void Postfix(ref bool __result) => __result = true;
}