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 BepInEx.Core.Logging.Interpolation;
using BepInEx.Logging;
using BepInEx.Unity.IL2CPP;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("NodusCursorius")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("Removes Version Watermark")]
[assembly: AssemblyFileVersion("1.0.3.0")]
[assembly: AssemblyInformationalVersion("1.0.3+8d4e7a742908e3d534a4c6ff5609fe895e42d9f5")]
[assembly: AssemblyProduct("RemoveVersionWatermark")]
[assembly: AssemblyTitle("RemoveVersionWatermark")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.3.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.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 RemoveVersionWatermark
{
[BepInPlugin("RemoveVersionWatermark", "RemoveVersionWatermark", "1.0.3")]
public class RemoveVersionWatermarkPlugin : BasePlugin
{
private static Harmony harmony;
public override void Load()
{
//IL_0020: Unknown result type (might be due to invalid IL or missing references)
//IL_0026: Expected O, but got Unknown
harmony = Harmony.CreateAndPatchAll(typeof(RemoveVersionWatermarkPlugin), (string)null);
ManualLogSource log = ((BasePlugin)this).Log;
bool flag = default(bool);
BepInExInfoLogInterpolatedStringHandler val = new BepInExInfoLogInterpolatedStringHandler(27, 2, ref flag);
if (flag)
{
((BepInExLogInterpolatedStringHandler)val).AppendLiteral("Plugin ");
((BepInExLogInterpolatedStringHandler)val).AppendFormatted<string>("RemoveVersionWatermark");
((BepInExLogInterpolatedStringHandler)val).AppendLiteral(" version ");
((BepInExLogInterpolatedStringHandler)val).AppendFormatted<string>("1.0.3");
((BepInExLogInterpolatedStringHandler)val).AppendLiteral(" is loaded!");
}
log.LogInfo(val);
}
[HarmonyPostfix]
[HarmonyPatch(typeof(VersionString), "Start")]
public static void VersionString_Start()
{
GameObject val = GameObject.Find("VersionString");
if ((Object)(object)val != (Object)null && val.active)
{
val.active = false;
}
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "RemoveVersionWatermark";
public const string PLUGIN_NAME = "RemoveVersionWatermark";
public const string PLUGIN_VERSION = "1.0.3";
}
}