using System;
using System.Collections.Generic;
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 Microsoft.CodeAnalysis;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("HDLethalCompanyPatch")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("My first plugin")]
[assembly: AssemblyTitle("HDLethalCompanyPatch")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[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 HDLethalCompanyPatch
{
[BepInPlugin("HDLCPatch", "HDLCPatch", "1.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class HDLCPatch : BaseUnityPlugin
{
internal static ManualLogSource Logger;
private Harmony _harmony;
private void Awake()
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Expected O, but got Unknown
_harmony = new Harmony("HDLCPatch");
Logger = ((BaseUnityPlugin)this).Logger;
Logger.LogInfo((object)"Plugin HDLCPatch is loaded!");
foreach (MethodBase item in (List<MethodBase>)Harmony.GetAllPatchedMethods())
{
Logger.LogInfo((object)("Got method: " + item.Name + " from Module: " + item.Module));
if (item.Module.ToString() == "HDLethalCompanyRemake.dll" && item.Name == "RoundPostFix")
{
Logger.LogInfo((object)"Found RoundPostFix from HDLethalCompany attempting to remove problem patch...");
_harmony.Unpatch(item, (HarmonyPatchType)1, (string)null);
}
}
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "HDLethalCompanyPatch";
public const string PLUGIN_NAME = "My first plugin";
public const string PLUGIN_VERSION = "1.0.0";
}
}