Decompiled source of MelonMod v1.0.0

MelonMod.dll

Decompiled 10 months 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;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("MelonMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MelonMod")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("f6bf5988-7197-4ccb-9fc8-354bbc477c18")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace MelonMod;

[BepInPlugin("MelonigeMelone.MelonMod", "MelonMod", "1.0.0.0")]
public class MelonModBase : BaseUnityPlugin
{
	private const string modGUID = "MelonigeMelone.MelonMod";

	private const string modName = "MelonMod";

	private const string modVersion = "1.0.0.0";

	private readonly Harmony harmony = new Harmony("MelonigeMelone.MelonMod");

	private static MelonModBase Instance;

	internal ManualLogSource mls;

	private void Awake()
	{
		if ((Object)(object)Instance == (Object)null)
		{
			Instance = new MelonModBase();
		}
		mls = Logger.CreateLogSource("MelonigeMelone.MelonMod");
		mls.LogInfo((object)"MelonMod has awaken ;)");
		harmony.PatchAll(typeof(MelonModBase));
	}
}