Skip to content

Commit

Permalink
lobby size patch
Browse files Browse the repository at this point in the history
  • Loading branch information
kermeow committed Oct 29, 2023
1 parent 7ab2e8a commit 54912cc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Patches/SteamMatchmaking.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using HarmonyLib;
using Steamworks;

namespace BigLobby.Patches
{
[HarmonyPatch(typeof(SteamMatchmaking), nameof(SteamMatchmaking.CreateLobbyAsync))]
public static class CreateLobbyAsync
{
public static void Prefix(ref int maxMembers) {
maxMembers = Plugin.MaxPlayers;
}
}
}
2 changes: 2 additions & 0 deletions Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ namespace BigLobby
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
public class Plugin : BaseUnityPlugin
{
public static int MaxPlayers = 8;

private Harmony harmony;
private void Awake()
{
Expand Down

0 comments on commit 54912cc

Please sign in to comment.