mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-08-07 19:47:09 -05:00
[F] DecryptNetPacketBody
This commit is contained in:
parent
35937bed03
commit
d869f5cee8
|
|
@ -64,7 +64,13 @@ public static class Shim
|
|||
|
||||
public static byte[] DecryptNetPacketBody(byte[] encrypted)
|
||||
{
|
||||
var methods = AccessTools.TypeByName("Net.CipherAES").GetMethods();
|
||||
var type = AccessTools.TypeByName("Net.CipherAES");
|
||||
if (type == null)
|
||||
{
|
||||
MelonLogger.Warning("No matching Net.CipherAES class found");
|
||||
return encrypted;
|
||||
}
|
||||
var methods = type.GetMethods();
|
||||
var method = methods.FirstOrDefault(it => it.Name == "Decrypt" && it.GetParameters().Length <= 2);
|
||||
if (method == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user