Internals rewritten. PHoton config can now be fetched from the server, and if it fails, fallback to the local configuration.

This commit is contained in:
2025-08-16 21:04:26 -04:00
parent 8ca37170e4
commit 087d9a900e
20 changed files with 393 additions and 234 deletions

View File

@@ -35,10 +35,12 @@ namespace undead_universal_patch_il2cpp.Core.Config
public static class ServerPatchesConfig
{
public static ConfigEntry<bool> CustomEmotes;
public static ConfigEntry<bool> CustomPhoton;
}
public static class ServerPatchesConfigDefaults
{
public static bool CustomEmotes = false;
public static bool CustomPhoton = false;
}
public static class GameManagerConfig
{
@@ -69,6 +71,7 @@ namespace undead_universal_patch_il2cpp.Core.Config
public static ConfigEntry<bool> SelfHosted;
public static ConfigEntry<string> ServerAddress;
public static ConfigEntry<int> ServerPort;
public static ConfigEntry<byte> ConnectionProtocol;
}
public static class PhotonConfigDefaults
{
@@ -79,5 +82,6 @@ namespace undead_universal_patch_il2cpp.Core.Config
public static bool SelfHosted = false;
public static string ServerAddress = "127.0.0.1";
public static int ServerPort = 5055;
public static byte ConnectionProtocol = 0;
}
}