- SignalR handshake fix
- Self-hosted PhotonSocketServer support - Split photon and hile event patch - Deprecated amplitude redirect patch
This commit is contained in:
31
Plugin.cs
31
Plugin.cs
@@ -1,4 +1,4 @@
|
||||
using AmplitudeAnalytics;
|
||||
using System;
|
||||
using BepInEx;
|
||||
using BepInEx.Logging;
|
||||
using BepInEx.Unity.IL2CPP;
|
||||
@@ -6,7 +6,7 @@ using HarmonyLib;
|
||||
|
||||
namespace undead_universal_patch_il2cpp;
|
||||
|
||||
[BepInPlugin("dev.proxnet.recroom.universalpatch.noneac.il2cpp", "Undead Universal Patch", "1.2.0")]
|
||||
[BepInPlugin("dev.proxnet.recroom.universalpatch.noneac.il2cpp", "Undead Universal Patch", "1.3.0")]
|
||||
public class Plugin : BasePlugin
|
||||
{
|
||||
public static new readonly ManualLogSource Log = Logger.CreateLogSource("UUPatch");
|
||||
@@ -22,26 +22,39 @@ public class Plugin : BasePlugin
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
Util.LocalInstanceGuid = Guid.NewGuid().ToString();
|
||||
|
||||
Log.LogInfo("It's time to Room some Rec and chew bubble gum, and I'm all out of gum");
|
||||
|
||||
GenericConfig.LogAllRequests = Config.Bind("Generic", "LogAllRequests", GenericConfigDefaults.LogAllRequests,
|
||||
"Log all HTTP requests sent by the game.");
|
||||
GenericConfig.CertificatePatch = Config.Bind("Generic", "CertificatePatch", GenericConfigDefaults.CertificatePatch,
|
||||
"The game expects a certain certificate from rec.net when making HTTPS requests. Enable this to allow any valid certificate.");
|
||||
GenericConfig.HilePatch = Config.Bind("Generic", "HilePatch", GenericConfigDefaults.HilePatch,
|
||||
"The game will close after a short period of time if BepInEx is found. Enable to stop this from happening.");
|
||||
GenericConfig.AmplitudeRedirectPatch = Config.Bind("Generic", "AmplitudeRedirectPatch", GenericConfigDefaults.AmplitudeRedirectPatch,
|
||||
"Redirect all Amplitude API requests to the nameserver on '/amplitude'.");
|
||||
GenericConfig.SignalRHandshakeFix = Config.Bind("Generic", "SignalRHandshakeFix", GenericConfigDefaults.SignalRHandshakeFix,
|
||||
"Replace apostrophes with quotes in the initial SignalR handshake.");
|
||||
GenericConfig.ImageSignaturePatch = Config.Bind("Generic", "ImageSignaturePatch", GenericConfigDefaults.ImageSignaturePatch,
|
||||
"When enabled, all image signatures will be valid." +
|
||||
"\nWorks only if the server appends a properly formatted signature header (signature does not need to be valid)");
|
||||
GenericConfig
|
||||
PhotonConfig.PatchPhotonIds = Config.Bind("Photon", "PatchPhotonIds", PhotonConfigDefaults.PatchPhotonIds,
|
||||
"Enable/disable changing the target IDs in PhotonServerSettings." +
|
||||
"\nCustom server settings are not yet supported.");
|
||||
"Patch Photon configuration.");
|
||||
PhotonConfig.PunLogging = Config.Bind("Photon", "PunLogging", PhotonConfigDefaults.PunLogging,
|
||||
"Enable all logging sent by Photon/PUN/Voice (useful for server debugging)");
|
||||
PhotonConfig.SelfHosted = Config.Bind("Photon", "IsSelfHosted", PhotonConfigDefaults.SelfHosted,
|
||||
"When enabled, use a self-hosted 'OnPremises' PhotonSocketServer. (EXPERIMENTAL)" +
|
||||
"\nWhen disabled, AppID and VoiceAppID are sent to Photon Cloud and a cloud masterserver is used.");
|
||||
PhotonConfig.AppID = Config.Bind("Photon", "AppID", PhotonConfigDefaults.AppID,
|
||||
"The new target (PUN) App ID from the Photon dashboard.");
|
||||
"The new target (PUN) App ID from the Photon dashboard." +
|
||||
"\nWhen self-hosting, this should be the name of your application (either 'Master' or 'Game')");
|
||||
PhotonConfig.VoiceAppID = Config.Bind("Photon", "VoiceAppID", PhotonConfigDefaults.VoiceAppID,
|
||||
"The new target Voice App ID from the Photon dashboard.");
|
||||
"The new target Voice App ID from the Photon dashboard." +
|
||||
"\nWhen self-hosting, this value is ignored, since Photon voice in Rec Room is based on PUN.");
|
||||
PhotonConfig.ServerAddress = Config.Bind("Photon", "ServerAddress", PhotonConfigDefaults.ServerAddress,
|
||||
"Address of the Photon master server (ignored if not using self-hosted)");
|
||||
PhotonConfig.ServerPort = Config.Bind("Photon", "ServerPort", PhotonConfigDefaults.ServerPort,
|
||||
"Photon master server UDP port (ignored if not using self-hosted)");
|
||||
NameserverConfig.Rewrite = Config.Bind("Nameserver", "Rewrite", NameserverConfigDefaults.Rewrite,
|
||||
"Enable/disable rewriting the URL for nameserver requests.");
|
||||
NameserverConfig.NewUrl = Config.Bind("Nameserver", "NewUrl", NameserverConfigDefaults.NewUrl,
|
||||
@@ -71,5 +84,7 @@ public class Plugin : BasePlugin
|
||||
if (GalvanicConfig.Export.Value == "IWantToExportMyKeys") Galvanic.GalvanicAuth.Export();
|
||||
if (GalvanicConfig.Import.Value) Galvanic.GalvanicAuth.Import();
|
||||
if (GalvanicConfig.Enabled.Value) Galvanic.GalvanicWebAuth.GetToken();
|
||||
|
||||
Log.LogInfo("Undead Universal IL2CPP Patch for Rec Room by @zombieb; loaded.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user