Change encArg impl

This commit is contained in:
Mino 2020-03-28 00:26:05 +09:00
parent 349ba01572
commit bda6b9a822
3 changed files with 98 additions and 99 deletions

View file

@ -94,11 +94,15 @@ namespace Dalamud.Bootstrap
throw new BootstrapException($"Process id {process.Id} does not have any arguments to parse.");
}
if (EncryptedArgument.Extract(arguments[0], out var encryptedPayload, out var _))
var argument = arguments[0];
if (EncryptedArgument.TryParse(argument, out var encryptedArgument))
{
var key = RecoverKey(process);
EncryptedArgument.Decry(encryptedPayload, key)
//
}
}
/// <summary>