mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 04:35:46 +00:00
partition_data_manager: Take package2_keys by const reference
These are only ever read from, so we don't need to make a copy of all the keys here.
This commit is contained in:
parent
461cd4b81c
commit
283f111f7d
2 changed files with 3 additions and 2 deletions
|
@ -447,7 +447,7 @@ bool AttemptDecrypt(const std::array<u8, 16>& key, Package2Header& header) {
|
|||
return false;
|
||||
}
|
||||
|
||||
void PartitionDataManager::DecryptPackage2(std::array<std::array<u8, 16>, 0x20> package2_keys,
|
||||
void PartitionDataManager::DecryptPackage2(const std::array<Key128, 0x20>& package2_keys,
|
||||
Package2Type type) {
|
||||
FileSys::VirtualFile file = std::make_shared<FileSys::OffsetVfsFile>(
|
||||
package2[static_cast<size_t>(type)],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue