Decompiled source of Silksong Remove Atmosphere Aka Myopia Filter v0.1.0

remove_myopia_filter.dll

Decompiled 4 months ago
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 BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using UnityEngine;

[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("remove_myopia_filter")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: AssemblyInformationalVersion("0.1.0+a23fdf26957cc810e2f4f103aca8c8482eba2999")]
[assembly: AssemblyProduct("Remove Myopia Filter mod")]
[assembly: AssemblyTitle("remove_myopia_filter")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.1.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 remove_myopia_filter
{
	[BepInPlugin("remove_myopia_filter", "Remove Myopia Filter mod", "0.1.0")]
	public class Plugin : BaseUnityPlugin
	{
		[HarmonyPatch(typeof(HeroLight), "Awake")]
		public class AtStart
		{
			[HarmonyPostfix]
			private static void Postfix(StartManager __instance, ref SpriteRenderer ___spriteRenderer, ref SpriteRenderer ___heroLightDonut, ref Transform ___vignette)
			{
				((Component)___spriteRenderer).gameObject.active = false;
				((Component)___vignette).gameObject.active = false;
			}
		}

		internal static ManualLogSource Logger;

		private readonly Harmony harmony = new Harmony("remove_myopia_filter");

		private void Awake()
		{
			harmony.PatchAll();
		}
	}
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "remove_myopia_filter";

		public const string PLUGIN_NAME = "Remove Myopia Filter mod";

		public const string PLUGIN_VERSION = "0.1.0";
	}
}