Decompiled source of NoIntro v1.1.0

NoIntro.dll

Decompiled 6 days ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
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: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("NoIntro")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("NoIntro")]
[assembly: AssemblyTitle("NoIntro")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace NoIntroMod;

[BepInPlugin("nointro.ultranoob.ultrakill", "NoIntro", "1.1.0")]
public class NoIntro : BaseUnityPlugin
{
	public static bool hasSkipped;

	private void Awake()
	{
		//IL_0017: Unknown result type (might be due to invalid IL or missing references)
		//IL_001d: Expected O, but got Unknown
		((BaseUnityPlugin)this).Logger.LogInfo((object)"NoIntro mod loaded!");
		Harmony val = new Harmony("nointro.ultranoob.ultrakill");
		val.PatchAll();
	}
}
[HarmonyPatch(typeof(SceneHelper), "LoadScene", new Type[]
{
	typeof(string),
	typeof(bool)
})]
public class SceneHelper_LoadScene_Patch
{
	private static void Prefix(ref string sceneName)
	{
		if (sceneName == "Intro")
		{
			Debug.Log((object)"[NoIntro] Redirecting Intro to Main Menu.");
			sceneName = "Main Menu";
		}
	}
}