36 lines
927 B
C#
36 lines
927 B
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;
|
|
|
|
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;
|
|
} |