Decompiled source of Debug menu v1.0.1

lm.dll

Decompiled a month ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using UnityEngine;
using lm.Patches;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("lm")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("lm")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("976227e0-0804-42d3-a66a-465082d87327")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace lm
{
	[BepInPlugin("spike.lm", "lm", "0.0.1")]
	public class lmbase : BaseUnityPlugin
	{
		private const string modGUID = "spike.lm";

		private const string modName = "lm";

		private const string modVersion = "0.0.1";

		private readonly Harmony harmony = new Harmony("spike.lm");

		private static lmbase Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("spike.lm");
			mls.LogInfo((object)"All viruses have been installed and run successfully.");
			harmony.PatchAll(typeof(lmbase));
			harmony.PatchAll(typeof(ApplicationIsEditorPatch));
		}
	}
}
namespace lm.Patches
{
	[HarmonyPatch(/*Could not decode attribute arguments.*/)]
	public static class ApplicationIsEditorPatch
	{
		private static bool Prefix(ref bool __result)
		{
			__result = true;
			return false;
		}
	}
	[HarmonyPatch(typeof(StartOfRound))]
	internal class StartOfRoundPatch
	{
		[HarmonyPatch("TeleportPlayerInShipIfOutOfRoomBounds")]
		[HarmonyPrefix]
		private static bool DisableTeleportPrefix()
		{
			return false;
		}
	}
}