using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("WKFPSCapFix")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WKFPSCapFix")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("459d04a3-97e6-4fc4-b180-8a9d29a3e2ce")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace UncapFPSWhiteKnucklePlugin;
[BepInPlugin("com.ascyst.whiteknuckle.WKFPSCapFix", "FPS Cap Fix", "1.0.0")]
[BepInProcess("White Knuckle.exe")]
public class UncapFPS : BaseUnityPlugin
{
private void Awake()
{
Harmony.CreateAndPatchAll(typeof(UncapFPS), (string)null);
((BaseUnityPlugin)this).Logger.LogInfo((object)"Uncap FPS plugin loaded, probably!");
}
[HarmonyPatch(typeof(CL_GameManager), "Start")]
[HarmonyPostfix]
public static void Postfix()
{
Application.targetFrameRate = 165;
Console.WriteLine("FPS cap changed to 165.");
}
}