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 TVAlwaysWorksMod.Patches;
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("TVAlwaysWorksMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TVAlwaysWorksMod")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3b58ffd9-da3d-4c9c-bf22-e97bbd066e0e")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace TVAlwaysWorksMod
{
[BepInPlugin("Pappis.TVAlwaysWorksMod", "TV Always Works Mod", "1.0.0")]
public class TVAlwaysWorksModBase : BaseUnityPlugin
{
private const string modGUID = "Pappis.TVAlwaysWorksMod";
private const string modName = "TV Always Works Mod";
private const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("Pappis.TVAlwaysWorksMod");
private static TVAlwaysWorksModBase Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Pappis.TVAlwaysWorksMod");
mls.LogInfo((object)"The test mod has awoken melad");
harmony.PatchAll(typeof(TVAlwaysWorksModBase));
harmony.PatchAll(typeof(FlatscreenTVPatch));
}
}
}
namespace TVAlwaysWorksMod.Patches
{
[HarmonyPatch(typeof(FlatScreenTV))]
internal class FlatscreenTVPatch
{
[HarmonyPatch("Start")]
[HarmonyPrefix]
private static void TVAlwaysWorksPatch(ref bool ___broken)
{
___broken = false;
}
}
}