Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Updated for Among Us v2020.11.17s;
Browse files Browse the repository at this point in the history
Bumped version to 1.2.0;
  • Loading branch information
andruzzzhka committed Nov 24, 2020
1 parent da3afa6 commit 29d0855
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
23 changes: 11 additions & 12 deletions CustomServersClient/CustomServersPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion CustomServersClient/CustomServersPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions CustomServersClient/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
2 changes: 1 addition & 1 deletion CustomServersClient/UI/ServersManagementForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.IO;
using System.Windows.Forms;

using RegionMenu = IPCOMKKGKCK;
using RegionMenu = MBLPKNNOCML;

namespace CustomServersClient.UI
{
Expand Down

0 comments on commit 29d0855

Please sign in to comment.