From f4c6ce980f8f540f130c35e2302e056db0e89e76 Mon Sep 17 00:00:00 2001 From: Jadis0x <49281043+jadis0x@users.noreply.github.com> Date: Mon, 6 Mar 2023 21:23:30 +0300 Subject: [PATCH] Added: Demo for CreateCustomizedLobby function --- DevourClient/Hacks/Misc.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/DevourClient/Hacks/Misc.cs b/DevourClient/Hacks/Misc.cs index 5ce54de..c4bf4ce 100644 --- a/DevourClient/Hacks/Misc.cs +++ b/DevourClient/Hacks/Misc.cs @@ -164,6 +164,21 @@ namespace DevourClient.Hacks catch { } } + public static void CreateCustomizedLobby(Il2CppUdpKit.Platform.Photon.PhotonRegion.Regions __region, int lobbySize = 4) + { + + Il2CppUdpKit.Platform.PhotonPlatformConfig __photonPlatformConfig = new Il2CppUdpKit.Platform.PhotonPlatformConfig(); + __photonPlatformConfig.Region = Il2CppUdpKit.Platform.Photon.PhotonRegion.regions[__region]; + + BoltLauncher.SetUdpPlatform(new Il2CppUdpKit.Platform.PhotonPlatform(__photonPlatformConfig)); + + BoltConfig __config = UnityEngine.Object.FindObjectOfType().boltConfig; + + __config.serverConnectionLimit = lobbySize; + + BoltLauncher.StartServer(__config, null); + } + public static void SetSteamName(string name) { Il2CppHorror.Menu Menu_ = UnityEngine.Object.FindObjectOfType();