using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Steamworks; using TMPro; using UnityEngine; using UnityEngine.Events; using UnityEngine.SceneManagement; using UnityEngine.UI; using YAPYAP; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("YAPYAP_ServerList")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("YAPYAP_ServerList")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("fafcfe35-5a1d-4819-aebc-c1669943e8c0")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace YAPYAP_ServerList; [HarmonyPatch] [BepInPlugin("com.github.qert2002.YAPYAP_ServerList", "YAPYAP_ServerList", "1.0")] public class YAPYAP_ServerList : BaseUnityPlugin { public static YAPYAP_ServerList PluginInstance; public static ManualLogSource Log; public static Harmony HarmonyInstance; public static GameObject MainGameObject; public static GameObject LobbyListGameObject; public static GameObject LobbyListGameObject_Content; public static List all_buttons; public static GameObject LobbyTemplate; public static CallResult lobbyListCallResult; public static bool OneTimeInit; public static ELobbyDistanceFilter distanceFilter = (ELobbyDistanceFilter)3; public static float LastCheckTime; private void Awake() { //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Expected O, but got Unknown PluginInstance = this; Log = ((BaseUnityPlugin)this).Logger; all_buttons = new List(); HarmonyInstance = new Harmony("YAPYAP_ServerList"); HarmonyInstance.PatchAll(); SceneManager.sceneLoaded += SceneManager_sceneLoaded; } private void SceneManager_sceneLoaded(Scene arg0, LoadSceneMode arg1) { //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Expected O, but got Unknown if (!OneTimeInit) { OneTimeInit = true; if ((Object)(object)MainGameObject == (Object)null) { MainGameObject = new GameObject("YAPYAP_ServerList"); Object.DontDestroyOnLoad((Object)(object)MainGameObject); Log.LogInfo((object)"Loaded!"); } } } [HarmonyPostfix] [HarmonyPatch(typeof(MenuController), "Initialise")] public static void OV_MenuController_Initialise() { //IL_0259: Unknown result type (might be due to invalid IL or missing references) //IL_0263: Expected O, but got Unknown //IL_02e8: Unknown result type (might be due to invalid IL or missing references) //IL_02f2: Expected O, but got Unknown //IL_0378: Unknown result type (might be due to invalid IL or missing references) //IL_04e0: Unknown result type (might be due to invalid IL or missing references) //IL_04e5: Unknown result type (might be due to invalid IL or missing references) //IL_0527: Unknown result type (might be due to invalid IL or missing references) //IL_05ce: Unknown result type (might be due to invalid IL or missing references) //IL_061e: Unknown result type (might be due to invalid IL or missing references) //IL_063c: Unknown result type (might be due to invalid IL or missing references) //IL_064b: Unknown result type (might be due to invalid IL or missing references) //IL_00e6: Unknown result type (might be due to invalid IL or missing references) //IL_00f0: Expected O, but got Unknown //IL_06bd: Unknown result type (might be due to invalid IL or missing references) //IL_06c4: Expected O, but got Unknown //IL_0144: Unknown result type (might be due to invalid IL or missing references) //IL_014b: Expected O, but got Unknown lobbyListCallResult = CallResult.Create((APIDispatchDelegate)OnLobbyListReceived); GameObject val = GameObject.Find("3DButtonsContainer/"); if ((Object)(object)val != (Object)null) { all_buttons.Clear(); if ((Object)(object)val.GetComponent() != (Object)null) { ((Behaviour)val.GetComponent()).enabled = false; } GameObject val2 = Object.Instantiate(GameObject.Find("3DButtonsContainer/Play_Button3D")); ((Object)val2).name = "LobbyList_Button3D"; val2.transform.parent = val.transform; val2.transform.SetSiblingIndex(1); ((Behaviour)((Component)val2.transform.Find("Root/Text")).GetComponent()).enabled = false; ((TMP_Text)((Component)val2.transform.Find("Root/Text")).GetComponent()).text = "LOBBY LIST"; val2.GetComponent().onClick.AddListener(new UnityAction(OnLobbyListBtn_Open)); VerticalObjectSpacer component = val.GetComponent(); if ((Object)(object)component != (Object)null) { typeof(VerticalObjectSpacer).GetMethod("DistributeObjects", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(component, new object[0]); } foreach (Transform item in val.transform) { Transform val3 = item; all_buttons.Add(((Component)val3).GetComponent()); } } GameObject val4 = GameObject.Find("Canvas_Menu/UISettings/CreditsWindow"); if (!((Object)(object)val4 != (Object)null)) { return; } UICredits component2 = val4.GetComponent(); LobbyListGameObject = Object.Instantiate(val4, val4.transform.parent); ((Object)LobbyListGameObject).name = "LobbyListWindow"; Object.Destroy((Object)(object)LobbyListGameObject.GetComponent()); Object.Destroy((Object)(object)((Component)LobbyListGameObject.transform.Find("TitleElement/TitleText")).GetComponent()); ((TMP_Text)((Component)LobbyListGameObject.transform.Find("TitleElement/TitleText")).GetComponent()).text = "LOBBIES"; Transform val5 = LobbyListGameObject.transform.Find("Content/ButtonContainer/Close"); ((UnityEventBase)((Component)val5).GetComponent