Decompiled source of ScreenRecordingVFXFix v1.0.0

Mod/ScreenRecordingVFXFix.dll

Decompiled a day ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using MelonLoader;
using RockCam_Screen_Recording_VFX_Fix;
using Rock_Cam_Essentials;
using RumbleModdingAPI;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: MelonInfo(typeof(Main), "ScreenRecordingVFXFix", "1.0.0", "Deterraleon", null)]
[assembly: MelonGame("Buckethead Entertainment", "RUMBLE")]
[assembly: MelonColor(255, 127, 255, 255)]
[assembly: MelonAuthorColor(255, 255, 119, 255)]
[assembly: VerifyLoaderVersion(0, 6, 6, true)]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("ScreenRecordingVFXFix")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("ScreenRecordingVFXFix")]
[assembly: AssemblyTitle("ScreenRecordingVFXFix")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace RockCam_Screen_Recording_VFX_Fix;

public static class BuildInfo
{
	public const string ModName = "ScreenRecordingVFXFix";

	public const string ModVersion = "1.0.0";

	public const string Author = "Deterraleon";
}
public class Main : MelonMod
{
	private string currentScene = "Loader";

	private bool enabled = true;

	public Rock_Cam Camera;

	public override void OnSceneWasLoaded(int buildIndex, string sceneName)
	{
		currentScene = sceneName;
	}

	public override void OnLateInitializeMelon()
	{
		Calls.onMapInitialized += mapLoaded;
	}

	public void mapLoaded()
	{
		//IL_0017: Unknown result type (might be due to invalid IL or missing references)
		//IL_0021: Expected O, but got Unknown
		if (currentScene != "Loader")
		{
			Camera = new Rock_Cam();
			Camera.DoPostProcessing("TP", true);
			Camera.DoPostProcessing("FP", true);
			Camera.DoPostProcessing("HH", true);
		}
	}
}