forked from zombieb/undead-universal-patch-il2cpp
Remove galvanic authentication support
... that server is being rewritten
This commit is contained in:
26
Plugin.cs
26
Plugin.cs
@@ -49,6 +49,8 @@ public class Plugin : BasePlugin
|
||||
"\nWorks only if the server appends a properly formatted signature header (signature does not need to be valid)");
|
||||
GenericConfig.RegistrationPatch = Config.Bind("Generic", "RegistrationPatch", GenericConfigDefaults.RegistrationPatch,
|
||||
"Always disable the registration prompt.");
|
||||
GenericConfig.AFKPatch = Config.Bind("Generic", "AFKPatch", GenericConfigDefaults.AFKPatch,
|
||||
"Always present patch. Never get kicked to dorm.");
|
||||
|
||||
AssetChangesConfig.AGRoomChanges = Config.Bind("AssetChangesConfig", "AGRoomChanges", AssetChangesConfigDefaults.AGRoomChanges,
|
||||
$"Use patches from '{AGRoomChanges.config.path}' to change the properties of internal AGRooms. See README.md");
|
||||
@@ -80,31 +82,7 @@ public class Plugin : BasePlugin
|
||||
NameserverConfig.NewUrl = Config.Bind("Nameserver", "NewUrl", NameserverConfigDefaults.NewUrl,
|
||||
"The new full URL to use when sending a nameserver request.");
|
||||
|
||||
GalvanicConfig.Enabled = Config.Bind("GalvanicCorrosion", "Enabled", GalvanicConfigDefaults.Enabled,
|
||||
"Use Galvanic Corrosion features. Authenticates with a GC server." +
|
||||
"\nThe host and protocol in Nameserver.NewUrl will be used for the server's base URL." +
|
||||
"\nDo not enable if you either don't know what this does.");
|
||||
GalvanicConfig.RegenerateKeypair = Config.Bind("GalvanicCorrosion", "RegenerateKeypair", GalvanicConfigDefaults.RegenerateKeypair,
|
||||
"Regenerate the keypair upon startup. DO NOT ENABLE IF YOU WANT TO KEEP YOUR ACCOUNT.");
|
||||
GalvanicConfig.Export = Config.Bind("GalvanicCorrosion", "Export", GalvanicConfigDefaults.Export,
|
||||
"Export the keypair to a plaintext file in the game directory. Set to 'IWantToExportMyKeys' to enable." +
|
||||
"\n**DO NOT ENABLE IF YOU DO NOT KNOW WHAT THIS DOES.**" +
|
||||
"\n**DO NOT ENABLE THIS IF SOMEONE UNTRUSTWORTHY TOLD YOU TO.**" +
|
||||
"\n**THESE KEYS CONTAIN THE CREDENTIALS THAT GRANT ACCESS TO YOUR ACCOUNTS.**");
|
||||
GalvanicConfig.Import = Config.Bind("GalvanicCorrosion", "Import", GalvanicConfigDefaults.Import,
|
||||
"Import the Galvanic Authentication keys from a file." +
|
||||
"\nBe sure to not enable this at the same time as `Export`, as that will cause the keys to" +
|
||||
"\nbe unnecessarily written and read to and from the disk.");
|
||||
|
||||
_hi.PatchAll();
|
||||
if (GalvanicConfig.Enabled.Value && GalvanicConfig.RegenerateKeypair.Value)
|
||||
{
|
||||
Log.LogInfo("Regenerating keypair");
|
||||
GalvanicAuth.PrepareKeys();
|
||||
}
|
||||
if (GalvanicConfig.Enabled.Value && GalvanicConfig.Export.Value == "IWantToExportMyKeys") GalvanicAuth.Export();
|
||||
if (GalvanicConfig.Enabled.Value && GalvanicConfig.Import.Value) GalvanicAuth.Import();
|
||||
if (GalvanicConfig.Enabled.Value) GalvanicWebAuth.GetToken();
|
||||
|
||||
Log.LogInfo("PATCH LIST START =========================");
|
||||
foreach (var method in _hi.GetPatchedMethods()) Log.LogInfo($"- {method.ToString()}");
|
||||
|
||||
Reference in New Issue
Block a user