Decompiled source of PostProcessingFixerAPI v1.0.2

BepInEx/plugins/com.redbigz.PPF.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 UnityEngine;
using UnityEngine.Rendering.Universal;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("com.redbigz.PPF")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("An API for fixing Post-Processing on cameras.")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("PostProcessingFixerAPI")]
[assembly: AssemblyTitle("com.redbigz.PPF")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace PostProcessingFixerAPI;

[BepInPlugin("com.redbigz.PPF", "PostProcessingFixerAPI", "1.0.0")]
[ContentWarningPlugin("com.redbigz.PPF", "1.0.0", false)]
public class Plugin : BaseUnityPlugin
{
	internal static ManualLogSource Logger;

	private void Awake()
	{
		Logger = ((BaseUnityPlugin)this).Logger;
		Logger.LogInfo((object)"Plugin com.redbigz.PPF is loaded!");
	}
}
public static class PPF
{
	public static void Fix(Camera camera)
	{
		//IL_0024: Unknown result type (might be due to invalid IL or missing references)
		if ((Object)(object)camera == (Object)null)
		{
			throw new ArgumentNullException("camera");
		}
		CameraExtensions.GetUniversalAdditionalCameraData(camera).volumeLayerMask = CameraExtensions.GetUniversalAdditionalCameraData(Camera.main).volumeLayerMask;
	}
}
public static class MyPluginInfo
{
	public const string PLUGIN_GUID = "com.redbigz.PPF";

	public const string PLUGIN_NAME = "PostProcessingFixerAPI";

	public const string PLUGIN_VERSION = "1.0.0";
}