using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using HarmonyLib;
using Il2Cpp;
using MelonLoader;
using MelonLoader.Preferences;
using UnityEngine;
using makeitfreeze;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: MelonInfo(typeof(mainclass), "Superhot & Superfast VR", "1.0.0", "BayTurtleKing", null)]
[assembly: MelonGame(null, null)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("0.0.0.0")]
namespace makeitfreeze;
public static class buildinfo
{
public const string name = "Superhot & Superfast VR";
public const string description = "Makes Superhot VR not slow down";
public const string author = "BayTurtleKing";
public const string company = null;
public const string version = "1.0.0";
}
public class mainclass : MelonMod
{
public static MelonPreferences_Category prefs;
public static MelonPreferences_Entry<float> fixedspeed;
public override void OnInitializeMelon()
{
prefs = MelonPreferences.CreateCategory("SuperFast");
fixedspeed = prefs.CreateEntry<float>("fixedspeed", 1f, (string)null, "speed multiplier, 1 = real-time", false, false, (ValueValidator)null, (string)null);
}
}
[HarmonyPatch(typeof(TimeControl), "LateUpdate")]
public static class blockslowmopatch
{
private static bool Prefix()
{
Time.timeScale = mainclass.fixedspeed.Value;
return false;
}
}