using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("NoPostProcessing")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("tybikkryt")]
[assembly: AssemblyProduct("NoPostProcessing")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3172c3ef-d05a-4d7f-9403-ba6ac6e8026a")]
[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")]
[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 NoPostProcessing
{
[BepInPlugin("tybikkryt.nopostproccesing", "NoPostProcessing", "1.0.0.0")]
public class NoPostProccesingPlugin : BaseUnityPlugin
{
[HarmonyPatch(typeof(PostProcessVolume), "Update")]
public class PostProcessVolumePatch
{
private static void Postfix()
{
ppm = GameObject.Find("Post Processing Main");
ppo = GameObject.Find("Post Processing Overlay");
ppm.SetActive(false);
ppo.SetActive(false);
}
}
public const string pluginGuid = "tybikkryt.nopostproccesing";
public const string pluginName = "NoPostProcessing";
public const string pluginVersion = "1.0.0.0";
public static ManualLogSource Log;
public static GameObject ppm;
public static GameObject ppo;
private void Awake()
{
//IL_0020: Unknown result type (might be due to invalid IL or missing references)
((BaseUnityPlugin)this).Logger.LogMessage((object)"Patching...");
Log = ((BaseUnityPlugin)this).Logger;
new Harmony("tybikkryt.nopostproccesing").PatchAll();
((BaseUnityPlugin)this).Logger.LogMessage((object)"Patching complete");
}
}
}