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.Core.Logging.Interpolation;
using BepInEx.Logging;
using BepInEx.Unity.IL2CPP;
using HarmonyLib;
using Il2CppSystem.Collections.Generic;
using Microsoft.CodeAnalysis;
using ProjectM.Presentation;
using UnityEngine;
using UnityEngine.Rendering;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("CrimsonMods, iZastic")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("Removes Vignette")]
[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: AssemblyInformationalVersion("2.0.0+Branch.main.Sha.e5a71da0629e3d4574f02839249fa31a60327aea.e5a71da0629e3d4574f02839249fa31a60327aea")]
[assembly: AssemblyProduct("RemoveVignette")]
[assembly: AssemblyTitle("RemoveVignette")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("2.0.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 RemoveVignette
{
[HarmonyPatch(typeof(MoodManagerComponent), "OnEnable")]
internal static class MoodManagerComponent_Patch
{
private static void Postfix(MoodManagerComponent __instance)
{
Enumerator<VolumeComponent> enumerator = ((Component)((Component)__instance).transform.FindChild("Scene PostProcess")).GetComponent<Volume>().profile.components.GetEnumerator();
while (enumerator.MoveNext())
{
VolumeComponent current = enumerator.Current;
if (((Object)current).name.StartsWith("Vignette"))
{
current.active = false;
break;
}
}
}
}
[BepInPlugin("RemoveVignette", "RemoveVignette", "2.0.0")]
public class Plugin : BasePlugin
{
public static ManualLogSource Logger;
private static Harmony Harmony;
public override void Load()
{
//IL_0010: Unknown result type (might be due to invalid IL or missing references)
//IL_001a: Expected O, but got Unknown
//IL_002e: Unknown result type (might be due to invalid IL or missing references)
//IL_0034: Expected O, but got Unknown
Logger = ((BasePlugin)this).Log;
Harmony = new Harmony("RemoveVignette");
Harmony.PatchAll();
ManualLogSource logger = Logger;
bool flag = default(bool);
BepInExInfoLogInterpolatedStringHandler val = new BepInExInfoLogInterpolatedStringHandler(18, 1, ref flag);
if (flag)
{
((BepInExLogInterpolatedStringHandler)val).AppendLiteral("Plugin ");
((BepInExLogInterpolatedStringHandler)val).AppendFormatted<string>("RemoveVignette");
((BepInExLogInterpolatedStringHandler)val).AppendLiteral(" is loaded!");
}
logger.LogInfo(val);
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "RemoveVignette";
public const string PLUGIN_NAME = "RemoveVignette";
public const string PLUGIN_VERSION = "2.0.0";
}
}