IOS: Use a std::array for the title key instead of vector

The title key is always 16 bytes, so it doesn't make sense to make it
a std::vector.
This commit is contained in:
Léo Lam
2017-06-26 23:38:58 +02:00
parent aa020040f6
commit 6d821de2b9
5 changed files with 7 additions and 8 deletions

View File

@ -186,7 +186,7 @@ void NANDContentLoader::InitializeContentEntries(const std::vector<u8>& data_app
m_Content.resize(contents.size());
u32 data_app_offset = 0;
const std::vector<u8> title_key = m_ticket.GetTitleKey();
const std::array<u8, 16> title_key = m_ticket.GetTitleKey();
IOS::ES::SharedContentMap shared_content{m_root};
for (size_t i = 0; i < contents.size(); ++i)