using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyCompany("Scrubbed_Title_Screen")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Scrubbed_Title_Screen")] [assembly: AssemblyTitle("Scrubbed_Title_Screen")] [assembly: AssemblyVersion("1.0.0.0")] [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 JPValheim.ScrubbedTitleScreen { [BepInPlugin("com.jpvalheim.scrubbedtitlescreen", "Scrubbed_Title_Screen", "1.0.0")] public sealed class Plugin : BaseUnityPlugin { public const string PluginGuid = "com.jpvalheim.scrubbedtitlescreen"; public const string PluginName = "Scrubbed_Title_Screen"; public const string PluginVersion = "1.0.0"; private Harmony _harmony; private void Awake() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_0010: Expected O, but got Unknown _harmony = new Harmony("com.jpvalheim.scrubbedtitlescreen"); _harmony.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Scrubbed_Title_Screen 1.0.0 loaded."); } private void OnDestroy() { Harmony harmony = _harmony; if (harmony != null) { harmony.UnpatchSelf(); } } } [HarmonyPatch(typeof(FejdStartup), "SetupGui")] internal static class FejdStartupSetupGuiPatch { [HarmonyPostfix] [HarmonyPriority(0)] private static void Postfix(FejdStartup __instance) { if ((Object)(object)__instance == (Object)null) { return; } if ((Object)(object)__instance.m_patchLogScroll != (Object)null) { Transform parent = ((Component)__instance.m_patchLogScroll).transform.parent; if ((Object)(object)parent != (Object)null) { ((Component)parent).gameObject.SetActive(false); } } if ((Object)(object)__instance.m_moddedText != (Object)null) { __instance.m_moddedText.SetActive(false); } } } }