using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using UnityEngine;
using UnityEngine.SceneManagement;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")]
[assembly: AssemblyCompany("InscryptionHighRes")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("InscryptionHighRes")]
[assembly: AssemblyTitle("InscryptionHighRes")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace InscryptionHighRes;
[BepInPlugin("org.overfall.inscryption.highres", "InscryptionHighRes", "1.2.0")]
public class Plugin : BaseUnityPlugin
{
internal static ManualLogSource Log;
private string[] targetScenes = new string[5] { "Part1_Cabin", "Part1_Sanctum", "Part3_Cabin", "finale_grimora", "finale_magnificus" };
public void Update()
{
if (!Array.Exists(targetScenes, delegate(string sceneName)
{
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
Scene activeScene = SceneManager.GetActiveScene();
return sceneName == ((Scene)(ref activeScene)).name;
}))
{
return;
}
string[] array = new string[4] { "Effects Camera", "Pixel Camera", "PerspectiveUICamera", "OrthographicUICamera" };
string[] array2 = array;
foreach (string text in array2)
{
GameObject val = GameObject.Find(text);
if (!((Object)(object)val != (Object)null))
{
continue;
}
Component component = val.GetComponent("PixelCamera");
if ((Object)(object)component != (Object)null)
{
Behaviour val2 = (Behaviour)(object)((component is Behaviour) ? component : null);
if (val2 != null)
{
val2.enabled = false;
}
}
}
}
private void Awake()
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"InscryptionHighRes loaded! - Made by Overfall");
Log = ((BaseUnityPlugin)this).Logger;
}
}