mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-27 17:07:10 +02:00
Revert LibHac update
Users are facing save destruction on failing extra data update apparently
This commit is contained in:
parent
40bdb4d1ad
commit
e525dba58c
32 changed files with 575 additions and 1805 deletions
|
@ -653,11 +653,11 @@ namespace Ryujinx.HLE.FileSystem.Content
|
|||
|
||||
public SystemVersion VerifyFirmwarePackage(string firmwarePackage)
|
||||
{
|
||||
_virtualFileSystem.ReloadKeySet();
|
||||
_virtualFileSystem.Reload();
|
||||
|
||||
// LibHac.NcaHeader's DecryptHeader doesn't check if HeaderKey is empty and throws InvalidDataException instead
|
||||
// So, we check it early for a better user experience.
|
||||
if (_virtualFileSystem.KeySet.HeaderKey.IsZeros())
|
||||
if (_virtualFileSystem.KeySet.HeaderKey.IsEmpty())
|
||||
{
|
||||
throw new MissingKeyException("HeaderKey is empty. Cannot decrypt NCA headers.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue