using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
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: AssemblyTitle("DspFontPatcher")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DspFontPatcher")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("81DF3045-8007-4F6A-AAF6-903139D85B6C")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.1.0.0")]
[module: UnverifiableCode]
namespace DSPSorterMk3Classic;
[BepInPlugin("Appun.DSP.plugin.SorterMk3Classic", "DSPSorterMk3Classic", "0.0.1")]
[HarmonyPatch]
public class Main : BaseUnityPlugin
{
public class LogManager
{
public static ManualLogSource Logger;
}
public void Awake()
{
LogManager.Logger = ((BaseUnityPlugin)this).Logger;
Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), (string)null);
}
[HarmonyPostfix]
[HarmonyPatch(typeof(VFPreload), "PreloadThread")]
public static void VFPreload_PreloadThread_Patch(VFPreload __instance)
{
//IL_003c: Unknown result type (might be due to invalid IL or missing references)
//IL_0041: Unknown result type (might be due to invalid IL or missing references)
for (int i = 1; i < 4; i++)
{
TechProto val = ((ProtoSet<TechProto>)(object)LDB.techs).Select(3300 + i);
val.IsObsolete = false;
val.Position = new Vector2(val.Position.x + 28f, val.Position.y);
}
TechProto val2 = ((ProtoSet<TechProto>)(object)LDB.techs).Select(3304);
val2.PreTechs[0] = 0;
}
public static void UUITechTree_OnOpen_PPostfix(UITechTree __instance)
{
GameMain.history.inserterStackCountObsolete = 6;
}
}