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 UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("AprilFoolsMode")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("AprilFoolsMode")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("5a0c2b37-b466-43ea-ae2e-4fbfe078e6b1")] [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")] namespace AprilFoolsMode { [BepInPlugin("Vexoyd.FlippedCamera", "FlippedCamera", "1.0.0")] public class AprilFoolsModeBase : BaseUnityPlugin { private const string modGUID = "Vexoyd.FlippedCamera"; private const string modName = "FlippedCamera"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("Vexoyd.FlippedCamera"); private static AprilFoolsModeBase Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("Vexoyd.FlippedCamera"); mls.LogInfo((object)"your screen will be flipped >:)"); harmony.PatchAll(); } } } namespace AprilFoolsMode.Patches { [HarmonyPatch(typeof(IngamePlayerSettings))] internal class HudManagerPatch { [HarmonyPatch("Awake")] [HarmonyPostfix] private static void FlipScreen(IngamePlayerSettings __instance) { __instance.flipCamera = true; } } }