Decompiled source of LateRepoIntroFix v1.0.1

LateRepoIntroFix.dll

Decompiled 10 hours ago
using System;
using System.Reflection;
using BepInEx;

[assembly: AssemblyVersion("1.0.0.0")]
namespace LateRepoIntroFix;

[BepInPlugin("jp.laterepo.introfix", "LateRepo Intro Fix", "1.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
	private void Awake()
	{
		Type? type = Type.GetType("LateRepo.Patches.LateJoinPatch, LateRepo");
		if ((object)type == null)
		{
			return;
		}
		FieldInfo? field = type.GetField("startHook", BindingFlags.Static | BindingFlags.NonPublic);
		if ((object)field != null)
		{
			IDisposable obj = field.GetValue(null) as IDisposable;
			if (obj != null)
			{
				obj.Dispose();
				field.SetValue(null, null);
			}
		}
	}
}