Decompiled source of F11ToFullscreen v1.0.1

F11ToFullscreen.dll

Decompiled a month 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 Microsoft.CodeAnalysis;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Controls;

[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.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("F11ToFullscreen")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("My first plugin")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("F11ToFullscreen")]
[assembly: AssemblyTitle("F11ToFullscreen")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[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 F11ToFullscreen
{
	[BepInPlugin("F11ToFullscreen", "F11ToFullscreen", "1.0.0")]
	public class Plugin : BaseUnityPlugin
	{
		public static bool fullscreen;

		private void Awake()
		{
			CharacterSelectHandler_online.clientSideMods_you_can_increment_this_to_enable_matchmaking_for_your_mods__please_dont_use_it_to_cheat_thats_really_cringe_especially_if_its_desyncing_others___you_didnt_even_win_on_your_opponents_screen___I_cannot_imagine_a_sadder_existence++;
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin F11ToFullscreen is loaded!");
		}

		private void Update()
		{
			fullscreen = Settings.instance.FullScreen == 1;
			if (((ButtonControl)Keyboard.current.f11Key).wasPressedThisFrame)
			{
				Settings.instance.FullScreen = ((Settings.instance.FullScreen == 0) ? 1 : 0);
				Settings.instance.Save();
				((BaseUnityPlugin)this).Logger.LogInfo((object)("Switched to " + ((Settings.instance.FullScreen == 1) ? "fullscreen" : "windowed") + " mode"));
			}
		}
	}
	public static class PluginInfo
	{
		public const string PLUGIN_GUID = "F11ToFullscreen";

		public const string PLUGIN_NAME = "F11ToFullscreen";

		public const string PLUGIN_VERSION = "1.0.0";
	}
}