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.Logging;
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: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyCompany("UncapFPS")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Uncap fps setting")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("UncapFPS")]
[assembly: AssemblyTitle("UncapFPS")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace UncapFPS;
[BepInPlugin("UncapFPS", "UncapFPS", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
[HarmonyPatch(typeof(GameController), "Start")]
internal class GameControllerStartPatch
{
private static void Postfix()
{
Application.targetFrameRate = -1;
QualitySettings.vSyncCount = 0;
}
}
private static ManualLogSource Logger { get; set; }
private void Awake()
{
//IL_0022: Unknown result type (might be due to invalid IL or missing references)
//IL_0028: Expected O, but got Unknown
Logger = ((BaseUnityPlugin)this).Logger;
Logger.LogInfo((object)"Loaded UncapFPS v1.0.0.");
Harmony val = new Harmony("UncapFPS");
val.PatchAll();
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "UncapFPS";
public const string PLUGIN_NAME = "UncapFPS";
public const string PLUGIN_VERSION = "1.0.0";
}