Decompiled source of SplashSkip v0.1.0

SplashSkip.dll

Decompiled 3 days ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using MioGame;
using MioModLoader;
using On.MioGame;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
[assembly: AssemblyCompany("SplashSkip")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+d857de6a24c7bf10dd814268e7cfad313fbf3a36")]
[assembly: AssemblyProduct("SplashSkip")]
[assembly: AssemblyTitle("SplashSkip")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace SplashSkip;

public class SplashSkipMod : Mod
{
	[Serializable]
	[CompilerGenerated]
	private sealed class <>c
	{
		public static readonly <>c <>9 = new <>c();

		public static orig_update_splashes <>9__0_0;

		internal unsafe void <Initialize>b__0_0(Metagame* self)
		{
			((Splashes)(&((Metagame)self).splashes)).done = true;
		}
	}

	public unsafe override void Initialize()
	{
		//IL_0014: Unknown result type (might be due to invalid IL or missing references)
		//IL_0019: Unknown result type (might be due to invalid IL or missing references)
		//IL_001f: Expected O, but got Unknown
		object obj = <>c.<>9__0_0;
		if (obj == null)
		{
			orig_update_splashes val = delegate(Metagame* self)
			{
				((Splashes)(&((Metagame)self).splashes)).done = true;
			};
			<>c.<>9__0_0 = val;
			obj = (object)val;
		}
		update_splashes.Prefix += (orig_update_splashes)obj;
	}
}