Decompiled source of NoScanner v1.0.0

No-Scanner.dll

Decompiled 6 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using JetBrains.Annotations;
using Microsoft.CodeAnalysis;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyCompany("No-Scanner")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+53aafaa1e52e0734263103ac5148b5c622544e28")]
[assembly: AssemblyProduct("No-Scanner")]
[assembly: AssemblyTitle("No-Scanner")]
[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 Dawn.LC.NoScanner
{
	public static class PluginInfo
	{
		public const string PLUGIN_GUID = "No-Scanner";

		public const string PLUGIN_NAME = "No-Scanner";

		public const string PLUGIN_VERSION = "1.0.0";
	}
}
namespace NoScanner
{
	[BepInPlugin("No-Scanner", "No-Scanner", "1.0.0")]
	internal sealed class Plugin : BaseUnityPlugin
	{
		private void Awake()
		{
			Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), (string)null);
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Checking in ;)");
		}
	}
}
namespace NoScanner.Harmony
{
	[HarmonyPatch(typeof(HUDManager), "CanPlayerScan")]
	internal static class PreventPlayerFromScanning_Patch
	{
		[UsedImplicitly]
		[HarmonyPrefix]
		private static bool OnCanPlayerScan(ref bool __result)
		{
			return __result = false;
		}
	}
}