Decompiled source of UnlimitedSelect v0.1.0

BepInEx/plugins/CastleStory_UnlimitedSelect.dll

Decompiled 6 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using Brix.UI.GameSelector;
using HarmonyLib;
using Microsoft.CodeAnalysis;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyCompany("CastleStory_UnlimitedSelect")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("CastleStory: Unlimited Select Plugin")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: AssemblyInformationalVersion("0.1.0+e6f0739bd9ead47789de179cc25aa2058609c968")]
[assembly: AssemblyProduct("CastleStory_UnlimitedSelect")]
[assembly: AssemblyTitle("CastleStory_UnlimitedSelect")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.1.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace CastleStory_UnlimitedSelect
{
	[HarmonyPatch(typeof(UIGameSelector), "InitializeSelectionData")]
	public class UIGameSelectorPatch
	{
		private static void Prefix(UIGameSelector __instance)
		{
			__instance.MaximumHoveredOrSelectedCount = int.MaxValue;
		}
	}
	[BepInPlugin("CastleStory_UnlimitedSelect", "CastleStory_UnlimitedSelect", "0.1.0")]
	public class Plugin : BaseUnityPlugin
	{
		private void Awake()
		{
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			new Harmony("com.wasikuss.castlestory.unlimitedselect").PatchAll();
		}
	}
	public static class PluginInfo
	{
		public const string PLUGIN_GUID = "CastleStory_UnlimitedSelect";

		public const string PLUGIN_NAME = "CastleStory_UnlimitedSelect";

		public const string PLUGIN_VERSION = "0.1.0";
	}
}