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 field = typeof(QuickGameSettingsScreen).GetField("_singleClick", BindingFlags.Instance | BindingFlags.NonPublic);
bool flag = false;
if ((object)field != null)
{
flag = true;
field.SetValue(__instance, false);
Debug.Log((object)"SingleClick set to false");
}
if (!flag)
{
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";
}