Address comments

This commit is contained in:
Mary
2023-06-22 17:41:09 +02:00
parent ef5329a0d4
commit 0494ca0064
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -72,9 +72,9 @@ namespace Crypto {
}
struct AESKeySlot {
std::optional<AESKey> keyX;
std::optional<AESKey> keyY;
std::optional<AESKey> normalKey;
std::optional<AESKey> keyX{std::nullopt};
std::optional<AESKey> keyY{std::nullopt};
std::optional<AESKey> normalKey{std::nullopt};
};
enum KeySlotId : std::size_t {
+1 -1
View File
@@ -118,7 +118,7 @@ bool NCCH::loadFromHeader(Crypto::AESEngine &aesEngine, IOFile& file, const FSIn
printf("NCSD is supposedly ecrypted but not actually encrypted\n");
encrypted = false;
}
// If it's truely encrypted, we need to read section again.
// If it's truly encrypted, we need to read section again.
if (encrypted) {
auto [success, bytes] = readFromFile(file, exheaderInfo, &exheader[0], 0, exheaderSize);
if (!success || bytes != exheaderSize) {