Fix AES-CTR decryption for non-NCCHKey0 games

This commit is contained in:
wheremyfoodat 2024-07-11 22:22:33 +03:00
parent a1ff34d417
commit 096d0a89ee
2 changed files with 18 additions and 6 deletions
include/loader

View file

@ -60,6 +60,8 @@ struct NCCH {
CodeSetInfo text, data, rodata;
FSInfo partitionInfo;
std::optional<Crypto::AESKey> primaryKey, secondaryKey;
// Contents of the .code file in the ExeFS
std::vector<u8> codeFile;
// Contains of the cart's save data