using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using HarmonyLib;
using Microsoft.CodeAnalysis;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")]
[assembly: AssemblyCompany("MoreTimeSpeed")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+1f825f177c23d6f93d7a76f880b6b634e3dbc61b")]
[assembly: AssemblyProduct("MoreTimeSpeed")]
[assembly: AssemblyTitle("MoreTimeSpeed")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace MoreTimeSpeed
{
[HarmonyPatch(typeof(MainUI_DownBT))]
public class MainUIDownBTPatch
{
[HarmonyPostfix]
[HarmonyPatch("PlayXNumShow")]
public static void Postfix()
{
List<int> playTimeRun = Mainload.PlayTimeRun;
int num = Mainload.PlayTimeRun[1];
if (1 == 0)
{
}
int value = num switch
{
3 => MoreTimeSpeed.SpeedFor3X.Value,
5 => MoreTimeSpeed.SpeedFor5X.Value,
10 => MoreTimeSpeed.SpeedFor10X.Value,
_ => Mainload.PlayTimeRun[1],
};
if (1 == 0)
{
}
playTimeRun[1] = value;
}
[HarmonyPrefix]
[HarmonyPatch("InitShow")]
public static void Prefix()
{
Mainload.PlayTimeRun[1] = 1;
}
}
[BepInPlugin("cc.lymone.HoL.MoreTimeSpeed", "MoreTimeSpeed", "1.0.0")]
public class MoreTimeSpeed : BaseUnityPlugin
{
public const string MODNAME = "MoreTimeSpeed";
public const string MODGUID = "cc.lymone.HoL.MoreTimeSpeed";
public const string VERSION = "1.0.0";
internal static readonly Harmony Harmony = new Harmony("cc.lymone.HoL.MoreTimeSpeed");
public static ConfigEntry<int> SpeedFor3X = null;
public static ConfigEntry<int> SpeedFor5X = null;
public static ConfigEntry<int> SpeedFor10X = null;
private static AcceptableValueList<int> _acceptableValueList = new AcceptableValueList<int>(new int[20]
{
1, 2, 3, 4, 5, 6, 8, 10, 12, 15,
16, 20, 24, 30, 40, 48, 60, 80, 120, 240
});
private void Awake()
{
//IL_0021: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0050: Unknown result type (might be due to invalid IL or missing references)
//IL_005a: Expected O, but got Unknown
//IL_0080: Unknown result type (might be due to invalid IL or missing references)
//IL_008a: Expected O, but got Unknown
SpeedFor3X = ((BaseUnityPlugin)this).Config.Bind<int>("Speed", "Speed For 03x", 3, new ConfigDescription("Actual speed used when selecting 3x", (AcceptableValueBase)(object)_acceptableValueList, Array.Empty<object>()));
SpeedFor5X = ((BaseUnityPlugin)this).Config.Bind<int>("Speed", "Speed For 05x", 5, new ConfigDescription("Actual speed used when selecting 5x", (AcceptableValueBase)(object)_acceptableValueList, Array.Empty<object>()));
SpeedFor10X = ((BaseUnityPlugin)this).Config.Bind<int>("Speed", "Speed For 10x", 10, new ConfigDescription("Actual speed used when selecting 10x", (AcceptableValueBase)(object)_acceptableValueList, Array.Empty<object>()));
Harmony.PatchAll();
}
}
}