Please disclose if your mod was created primarily using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of Casino v81 Patch v1.0.0
BepInEx/plugins/casinov81patch/LethalCasinoPatch.dll
Decompiled 3 hours agousing System; 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.Configuration; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace LethalCasinoV81Patch { [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("com.jori.lethalcasinov81patch", "Lethal Casino v81 Patch", "1.0.0")] public class Plugin : BaseUnityPlugin { public static ConfigEntry<bool> EnableDebug; internal static ManualLogSource Log; private Harmony _harmony; private void Awake() { //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Expected O, but got Unknown Log = ((BaseUnityPlugin)this).Logger; Log.LogInfo((object)"Initializing Lethal Casino v81 Patch plugin"); _harmony = new Harmony("com.jori.lethalcasinov81patch"); _harmony.PatchAll(); Log.LogInfo((object)"Harmony patches applied"); } } } namespace LethalCasinoV81Patch.Patches { [HarmonyPatch] internal static class LethalCasinoBypassPatch { [HarmonyTargetMethod] private static MethodBase TargetMethod() { Type type = AccessTools.TypeByName("LethalCasino.Patches.MenuManagerPatch"); if (type == null) { return null; } return AccessTools.Method(type, "StartPatch", new Type[1] { typeof(MenuManager) }, (Type[])null); } [HarmonyPrefix] private static bool Prefix() { return false; } } }