Decompiled source of FrankysSingleClickMod v1.1.1

FrankySingleClickMod.dll

Decompiled 2 weeks ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
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: AssemblyTitle("frankysingleclickmod (frankysingleclickmod)")]
[assembly: AssemblyProduct("frankysingleclickmod")]
[assembly: AssemblyVersion("1.0.0.0")]
[HarmonyPatch(typeof(QuickGameSettingsScreen), "Show")]
public static class QuickGameSettingsScreen_Show_Patch
{
	private static void Postfix(QuickGameSettingsScreen __instance)
	{
		FieldInfo fieldInfo = AccessTools.Field(typeof(QuickGameSettingsScreen), "_singleClick");
		if ((object)fieldInfo != null)
		{
			fieldInfo.SetValue(__instance, false);
			Debug.Log((object)"SingleClick set to false");
		}
		else
		{
			Debug.LogError((object)"SingleClick Toggle Not Found");
		}
	}
}
namespace BepInExPlugin;

[BepInPlugin("frankysingleclickmod", "frankysingleclickmod", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
	private void Awake()
	{
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_000c: Expected O, but got Unknown
		Harmony val = new Harmony("frankysingleclickmod");
		val.PatchAll();
		Debug.Log((object)"frankysingleclickmod loaded");
	}
}
internal static class PluginInfo
{
	public const string PLUGIN_NAME = "frankysingleclickmod";

	public const string PLUGIN_ID = "frankysingleclickmod";

	public const string PLUGIN_VERSION = "1.0.0";
}