using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
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: AssemblyFileVersion("0.0.1")]
[assembly: AssemblyInformationalVersion("0.0.1")]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyVersion("0.0.1.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;
}
}
}
internal class ManifestInfo
{
internal const string TSName = "ModThatClosesTheGameWhenItOpens";
internal const string TSDescription = "This mod closes the game immediately after it opens.";
internal const string TSVersion = "0.0.1";
internal const string TSAuthor = "Tgb03";
internal const string TSWebsite = "https://thunderstore.io/";
}
namespace ModThatClosesTheGameWhenItOpens
{
[BepInPlugin("dev.YourName.gtfo.ModThatClosesTheGameWhenItOpens", "ModThatClosesTheGameWhenItOpens", "0.0.1")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BasePlugin
{
public const string GUID = "dev.YourName.gtfo.ModThatClosesTheGameWhenItOpens";
public const string MOD_NAME = "ModThatClosesTheGameWhenItOpens";
public const string VERSION = "0.0.1";
internal static ManualLogSource L;
private static readonly Harmony _harmony = new Harmony("dev.YourName.gtfo.ModThatClosesTheGameWhenItOpens");
public override void Load()
{
L = ((BasePlugin)this).Log;
_harmony.PatchAll(Assembly.GetExecutingAssembly());
L.LogInfo((object)"Mod that closes the game when it opens loaded!");
Application.Quit();
}
}
}