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 MoreFilm.Patches;
using Photon.Pun;
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("MoreFilm")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MoreFilm")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("28e54021-85bf-48a5-8106-094210c3a40e")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace MoreFilm
{
[BepInPlugin("someonehere.MoreFilm", "MoreFilm", "1.0.0.0")]
public class MoreFilmBase : BaseUnityPlugin
{
private const string modGUID = "someonehere.MoreFilm";
private const string modName = "MoreFilm";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("someonehere.MoreFilm");
private static MoreFilmBase Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("someonehere.MoreFilm");
mls.LogInfo((object)"MoreFilm is working.");
harmony.PatchAll(typeof(MoreFilmBase));
harmony.PatchAll(typeof(VideoCameraPatch));
}
}
}
namespace MoreFilm.Patches
{
[HarmonyPatch(typeof(VideoCamera), "ConfigItem")]
public class VideoCameraPatch
{
[HarmonyPostfix]
public static void PostfixHasFilmLeft(VideoCamera __instance, ItemInstanceData data, PhotonView playerView)
{
VideoInfoEntry val = default(VideoInfoEntry);
if (data.TryGetEntry<VideoInfoEntry>(ref val))
{
val.maxTime = 350f;
val.timeLeft = 350f;
}
}
}
}