Linux fix w/ config. Might implement properly later.

This commit is contained in:
2025-09-23 23:10:24 -04:00
parent b861c0236a
commit 9f5eb531b6
3 changed files with 33 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ namespace undead_universal_patch_il2cpp.Core.Config
public static ConfigEntry<bool> RegistrationPatch;
public static ConfigEntry<bool> AFKPatch;
public static ConfigEntry<bool> RefreshTokenFix;
public static ConfigEntry<bool> ProtonDeviceIdFix;
}
public static class PatchConfigDefaults
{
@@ -33,6 +34,7 @@ namespace undead_universal_patch_il2cpp.Core.Config
public static bool RegistrationPatch = false;
public static bool AFKPatch = false;
public static bool RefreshTokenFix = false;
public static bool ProtonDeviceIdFix = false;
}
public static class ServerPatchesConfig
{

View File

@@ -95,6 +95,8 @@ public class Initialization
PatchConfig.RefreshTokenFix = UniversalPatchPlugin.Instance.Config.Bind("Patches", "RefreshTokenFix", PatchConfigDefaults.RefreshTokenFix,
"Fix for the game needlessly requesting a refresh token in a loop. Cause for this issue is unknown." +
"\nDon't enable unless you know what this does.");
PatchConfig.ProtonDeviceIdFix = UniversalPatchPlugin.Instance.Config.Bind("Patches", "ProtonDeviceIdFix", PatchConfigDefaults.ProtonDeviceIdFix,
"Fix for device IDs on Wine/Proton. Enable if you get a null reference exception related to cryptography APIs during connect/token.");
ServerPatchesConfig.CustomEmotes = UniversalPatchPlugin.Instance.Config.Bind("ServerPatches", "CustomEmotes", ServerPatchesConfigDefaults.CustomEmotes,
"Modify the game's emote text with a configuration from the server.");