Decompiled source of Disable Update Check v1.0.0

DisableUpdateCheck.dll

Decompiled 7 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("DisableUpdateCheck")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DisableUpdateCheck")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("5e8e644a-017c-4942-8455-07ba49a1d8ef")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace DisableUpdateCheck;

[BepInPlugin("z33r0x.contentwarning.updatedisabler", "Update Disabler", "1.0.0.0")]
public class ModMain : BaseUnityPlugin
{
	public const string pluginGuid = "z33r0x.contentwarning.updatedisabler";

	public const string pluginName = "Update Disabler";

	public const string pluginVersion = "1.0.0.0";

	public void Awake()
	{
		Harmony.CreateAndPatchAll(typeof(CheckVersionHandlerPatches), (string)null);
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded Update Disabler!");
	}
}
[HarmonyPatch(typeof(CheckVersionHandler))]
internal class CheckVersionHandlerPatches
{
	[HarmonyPatch("CheckResult")]
	[HarmonyPrefix]
	public static bool CheckResultHook()
	{
		return false;
	}
}