From 29d085550687ac6fc0a5b36f79ecc80276d48b1b Mon Sep 17 00:00:00 2001 From: andruzzzhka Date: Tue, 24 Nov 2020 11:31:52 +0700 Subject: [PATCH] Updated for Among Us v2020.11.17s; Bumped version to 1.2.0; --- CustomServersClient/CustomServersPatches.cs | 23 +++++++++---------- CustomServersClient/CustomServersPlugin.cs | 2 +- .../Properties/AssemblyInfo.cs | 4 ++-- .../UI/ServersManagementForm.cs | 2 +- 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/CustomServersClient/CustomServersPatches.cs b/CustomServersClient/CustomServersPatches.cs index a441acd..4b07d1d 100644 --- a/CustomServersClient/CustomServersPatches.cs +++ b/CustomServersClient/CustomServersPatches.cs @@ -7,14 +7,13 @@ using UnhollowerBaseLib; using CustomServersClient.UI; -using RegionMenu = IPCOMKKGKCK; -using RegionMenuLambda = IPCOMKKGKCK.EBGBGOPHHAM; -using RegionInfo = CDLOPBGDBHF; -using ServerInfo = GBBLLNNMEBG; -using ServerManager = FOLCACGIEIK; -using InnerNetClient = DNAFMCDBMCI; -using ObjectPoolBehavior = EGLDLAINKEP; -using PassiveButton = BFBMELJEFCH; +using RegionMenu = MBLPKNNOCML; +using RegionMenuButtonCallback = MBLPKNNOCML.BLFMBBEHPJN; +using RegionInfo = GCFFHMOOGLH; +using ServerInfo = PDMHFECFBEP; +using ServerManager = CDDEBEELDGO; +using ObjectPoolBehavior = MCBLFCIMCDB; +using PassiveButton = ONEEHOKANFC; namespace CustomServersClient { @@ -101,18 +100,18 @@ public static void ClearOnClickAction(ObjectPoolBehavior buttonPool) } - [HarmonyPatch(typeof(RegionMenuLambda), nameof(RegionMenuLambda.Method_Internal_Void_0))] + [HarmonyPatch(typeof(RegionMenuButtonCallback), nameof(RegionMenuButtonCallback.Method_Internal_Void_0))] public static class RegionMenuChooseOptionPatch { - public static bool Prefix(ref RegionMenuLambda __instance) + public static bool Prefix(ref RegionMenuButtonCallback __instance) { - if (__instance.region.LCMJAAECKPN == "MANAGE_SERVERS") + if (__instance.region.CMADHJOPGHF == "MANAGE_SERVERS") { if(_managementForm == null || _managementForm.IsDisposed) _managementForm = new ServersManagementForm(); - _managementForm.regionMenu = __instance.field_Public_IPCOMKKGKCK_0; + _managementForm.regionMenu = __instance.field_Public_MBLPKNNOCML_0; if (_managementForm.Visible) _managementForm.Focus(); diff --git a/CustomServersClient/CustomServersPlugin.cs b/CustomServersClient/CustomServersPlugin.cs index e94b3df..451306a 100644 --- a/CustomServersClient/CustomServersPlugin.cs +++ b/CustomServersClient/CustomServersPlugin.cs @@ -5,7 +5,7 @@ namespace CustomServersClient { - [BepInPlugin("com.andruzzzhka.customserversclient", "Custom Servers Client", "1.1.0.0")] + [BepInPlugin("com.andruzzzhka.customserversclient", "Custom Servers Client", "1.2.0.0")] public class CustomServersPlugin : BasePlugin { public const string userDataPath = "UserData"; diff --git a/CustomServersClient/Properties/AssemblyInfo.cs b/CustomServersClient/Properties/AssemblyInfo.cs index 0e3ed56..2a8db9b 100644 --- a/CustomServersClient/Properties/AssemblyInfo.cs +++ b/CustomServersClient/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] +[assembly: AssemblyVersion("1.2.0.0")] +[assembly: AssemblyFileVersion("1.2.0.0")] diff --git a/CustomServersClient/UI/ServersManagementForm.cs b/CustomServersClient/UI/ServersManagementForm.cs index cd9de97..41a0b7f 100644 --- a/CustomServersClient/UI/ServersManagementForm.cs +++ b/CustomServersClient/UI/ServersManagementForm.cs @@ -4,7 +4,7 @@ using System.IO; using System.Windows.Forms; -using RegionMenu = IPCOMKKGKCK; +using RegionMenu = MBLPKNNOCML; namespace CustomServersClient.UI {