Decompiled source of All Levels Unlocked v1.0.0

plugins/AllLevels.dll

Decompiled a month ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using BepInEx.Unity.IL2CPP;
using Globals;
using HarmonyLib;
using Microsoft.CodeAnalysis;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyFileVersion("1.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyVersion("1.0.0.0")]
[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;
		}
	}
}
internal class ManifestInfo
{
	internal const string TSName = "All_Levels_Unlocked";

	internal const string TSDescription = "Unlocks all levels.";

	internal const string TSVersion = "1.0.0";

	internal const string TSAuthor = "AuriRex";

	internal const string TSWebsite = "https://github.com/AuriRex/GTFO_AllLevels";
}
namespace AllLevels
{
	[BepInPlugin("dev.aurirex.gtfo.alllevels", "All_Levels_Unlocked", "1.0.0")]
	public class Plugin : BasePlugin
	{
		[HarmonyPatch(typeof(Global), "Setup")]
		internal static class Patch
		{
			public static void Postfix()
			{
				Global.AllowFullRundown = true;
			}
		}

		public const string GUID = "dev.aurirex.gtfo.alllevels";

		public const string MOD_NAME = "All_Levels_Unlocked";

		public const string VERSION = "1.0.0";

		internal static ManualLogSource L;

		private static readonly Harmony _harmony = new Harmony("dev.aurirex.gtfo.alllevels");

		public override void Load()
		{
			L = ((BasePlugin)this).Log;
			_harmony.PatchAll(Assembly.GetExecutingAssembly());
			L.LogInfo((object)"Plugin loaded!");
		}
	}
}