Decompiled source of ModdedPrismaticTrials v1.0.1

ModdedPrismaticTrials.dll

Decompiled 2 months 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 BepInEx;
using BepInEx.Bootstrap;
using On.RoR2;
using RoR2;
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(".NETStandard,Version=v2.0", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("ModdedPrismaticTrials")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("ModdedPrismaticTrials")]
[assembly: AssemblyTitle("ModdedPrismaticTrials")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace ModdedPrismaticTrials
{
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	[BepInPlugin("com.Moffein.ModdedPrismaticTrials", "ModdedPrismaticTrials", "1.0.0")]
	public class ModdedPrismaticTrials : BaseUnityPlugin
	{
		[Serializable]
		[CompilerGenerated]
		private sealed class <>c
		{
			public static readonly <>c <>9 = new <>c();

			public static hook_ClientSubmitLeaderboardScore <>9__0_0;

			public static hook_OnEnable <>9__0_1;

			internal void <Awake>b__0_0(orig_ClientSubmitLeaderboardScore orig, WeeklyRun self, RunReport runReport)
			{
			}

			internal void <Awake>b__0_1(orig_OnEnable orig, DisableIfGameModded self)
			{
			}
		}

		public void Awake()
		{
			//IL_0036: Unknown result type (might be due to invalid IL or missing references)
			//IL_003b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Expected O, but got Unknown
			//IL_005b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0060: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Expected O, but got Unknown
			if (Chainloader.PluginInfos.ContainsKey("com.Wolfo.WolfoQualityOfLife"))
			{
				Debug.LogError((object)"ModdedPrismaticTrials: Changes will not be run because WolfoQoL is installed, which provides the same functionality but with much more customizability and features.");
				return;
			}
			object obj = <>c.<>9__0_0;
			if (obj == null)
			{
				hook_ClientSubmitLeaderboardScore val = delegate
				{
				};
				<>c.<>9__0_0 = val;
				obj = (object)val;
			}
			WeeklyRun.ClientSubmitLeaderboardScore += (hook_ClientSubmitLeaderboardScore)obj;
			object obj2 = <>c.<>9__0_1;
			if (obj2 == null)
			{
				hook_OnEnable val2 = delegate
				{
				};
				<>c.<>9__0_1 = val2;
				obj2 = (object)val2;
			}
			DisableIfGameModded.OnEnable += (hook_OnEnable)obj2;
		}
	}
}
namespace R2API.Utils
{
	[AttributeUsage(AttributeTargets.Assembly)]
	public class ManualNetworkRegistrationAttribute : Attribute
	{
	}
}