Decompiled source of EmployeeAssignments Updater Fix v1.0.0

EmployeeAssignmentsFix.dll

Decompiled 8 months ago
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 PersonalAssignments.Components;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("EmployeeAssignmentsFix")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("EmployeeAssignmentsFix")]
[assembly: AssemblyTitle("EmployeeAssignmentsFix")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace EmployeeAssignmentsFix
{
	[BepInPlugin("Dev1A3.EmployeeAssignmentsFix", "EmployeeAssignmentsFix", "1.0.0")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	internal class Plugin : BaseUnityPlugin
	{
		internal const string modGUID = "Dev1A3.EmployeeAssignmentsFix";

		internal const string modVersion = "1.0.0";

		private readonly Harmony harmony = new Harmony("Dev1A3.EmployeeAssignmentsFix");

		internal static ManualLogSource logSource;

		private void Awake()
		{
			logSource = ((BaseUnityPlugin)this).Logger;
			Assembly executingAssembly = Assembly.GetExecutingAssembly();
			harmony.PatchAll(executingAssembly);
			logSource.LogInfo((object)"Patched EmployeeAssignments");
		}
	}
	[HarmonyPatch]
	internal static class HarmonyPatches
	{
		[HarmonyPatch(typeof(UpdateChecker), "Awake")]
		[HarmonyPrefix]
		private static bool UCAwake()
		{
			Plugin.logSource.LogInfo((object)"Prevented UpdateChecker Awake");
			return false;
		}
	}
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "EmployeeAssignmentsFix";

		public const string PLUGIN_NAME = "EmployeeAssignmentsFix";

		public const string PLUGIN_VERSION = "1.0.0";
	}
}
namespace System.Runtime.CompilerServices
{
	[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
	internal sealed class IgnoresAccessChecksToAttribute : Attribute
	{
		public IgnoresAccessChecksToAttribute(string assemblyName)
		{
		}
	}
}