NANDImporter: Only read the AES key once

There is no need to constantly reset the key for every file entry.
This commit is contained in:
Starsam80
2021-12-29 21:03:50 -07:00
parent 80012ae253
commit 41a3368889
2 changed files with 8 additions and 8 deletions

View File

@ -3,6 +3,7 @@
#pragma once
#include <array>
#include <functional>
#include <memory>
#include <string>
@ -73,6 +74,7 @@ private:
std::string m_nand_root;
std::vector<u8> m_nand;
std::vector<u8> m_nand_keys;
std::array<u8, 16> m_aes_key;
std::unique_ptr<NANDSuperblock> m_superblock;
std::function<void()> m_update_callback;
};