using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using HarmonyLib;
using LabFusion.Representation;
using MelonLoader;
using NoFusionBackdoor;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: MelonInfo(typeof(Main), "NoFusionBackdoor", "1.0.0", "VeygaX", null)]
[assembly: MelonGame("Stress Level Zero", "BONELAB")]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("NoFusionBackdoor")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+aab9f247f128c56f538d6a86f467621d09f2d06e")]
[assembly: AssemblyProduct("NoFusionBackdoor")]
[assembly: AssemblyTitle("NoFusionBackdoor")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace NoFusionBackdoor;
public class Main : MelonMod
{
public override void OnInitializeMelon()
{
//IL_0036: Unknown result type (might be due to invalid IL or missing references)
//IL_003c: Expected O, but got Unknown
MethodInfo method = typeof(FusionMasterList).GetMethod("VerifyPlayer", BindingFlags.Static | BindingFlags.Public);
if (method != null)
{
HarmonyMethod val = new HarmonyMethod(typeof(Main).GetMethod("VerifyPlayerPrefix", BindingFlags.Static | BindingFlags.NonPublic));
((MelonBase)this).HarmonyInstance.Patch((MethodBase)method, val, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null);
}
}
private static bool VerifyPlayerPrefix(ref FusionMasterResult __result)
{
__result = (FusionMasterResult)1;
return false;
}
}