mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-09 07:35:41 +12:00
Address comments
This commit is contained in:
parent
ef5329a0d4
commit
0494ca0064
2 changed files with 4 additions and 4 deletions
|
@ -72,9 +72,9 @@ namespace Crypto {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct AESKeySlot {
|
struct AESKeySlot {
|
||||||
std::optional<AESKey> keyX;
|
std::optional<AESKey> keyX{std::nullopt};
|
||||||
std::optional<AESKey> keyY;
|
std::optional<AESKey> keyY{std::nullopt};
|
||||||
std::optional<AESKey> normalKey;
|
std::optional<AESKey> normalKey{std::nullopt};
|
||||||
};
|
};
|
||||||
|
|
||||||
enum KeySlotId : std::size_t {
|
enum KeySlotId : std::size_t {
|
||||||
|
|
|
@ -118,7 +118,7 @@ bool NCCH::loadFromHeader(Crypto::AESEngine &aesEngine, IOFile& file, const FSIn
|
||||||
printf("NCSD is supposedly ecrypted but not actually encrypted\n");
|
printf("NCSD is supposedly ecrypted but not actually encrypted\n");
|
||||||
encrypted = false;
|
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) {
|
if (encrypted) {
|
||||||
auto [success, bytes] = readFromFile(file, exheaderInfo, &exheader[0], 0, exheaderSize);
|
auto [success, bytes] = readFromFile(file, exheaderInfo, &exheader[0], 0, exheaderSize);
|
||||||
if (!success || bytes != exheaderSize) {
|
if (!success || bytes != exheaderSize) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue