using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("HideCheatsStatus")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("HideCheatsStatus")]
[assembly: AssemblyTitle("HideCheatsStatus")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[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 HideCheatsStatusMod
{
[BepInPlugin("com.khefier.HideCheatsStatus", "Hide Cheats Status", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
private void Awake()
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
new Harmony("com.khefier.HideCheatsStatus").PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"Hide Cheats Status cargado");
}
}
[HarmonyPatch(typeof(CheatsManager), "Start")]
public class CheatsManagerPatch
{
private static void Prefix(CheatsManager __instance)
{
//IL_0040: Unknown result type (might be due to invalid IL or missing references)
//IL_004f: Expected O, but got Unknown
try
{
Type type = AccessTools.TypeByName("HideCheatsStatus");
if (type == null)
{
type = typeof(CheatsManager).Assembly.GetType("HideCheatsStatus");
}
if (type != null)
{
object obj = Activator.CreateInstance(type);
__instance.RegisterCheat((ICheat)obj, "debug");
}
else
{
Debug.LogWarning((object)"[HideCheatsStatus] No se encontró la clase HideCheatsStatus");
}
}
catch (Exception ex)
{
Debug.LogError((object)("[HideCheatsStatus] Error: " + ex));
}
}
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}