first try?

This commit is contained in:
2025-10-04 19:20:37 -04:00
commit 8e27190afb
4 changed files with 573 additions and 0 deletions

36
Plugin.cs Normal file
View File

@@ -0,0 +1,36 @@
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;
public override void Load()
{
Log = base.Log;
Log.LogInfo($"Always RecFace on loading screen.");
}
}
[HarmonyPatch]
public class AlwaysRecFace
{
static PatchTypesResult typesResult = Util.PreparePatchTypes(
"Always RecFace on loading screen",
"LoadingScreen",
"get_ShowRecFace"
);
static bool Prepare() => typesResult.Success;
static MethodBase TargetMethod() => typesResult.Method;
static void Postfix(ref bool __result) => __result = true;
}