mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 19:30:04 +00:00
partition_data_manager: Remove unused std::map instance within DecryptPackage2()
Aside from emplacing elements into the map, the map itself is never actually queried for contained data.
This commit is contained in:
parent
e0c76226ad
commit
781fd7983c
@ -483,14 +483,12 @@ void PartitionDataManager::DecryptPackage2(const std::array<Key128, 0x20>& packa
|
|||||||
if (ini.magic != Common::MakeMagic('I', 'N', 'I', '1'))
|
if (ini.magic != Common::MakeMagic('I', 'N', 'I', '1'))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
std::map<u64, KIPHeader> kips{};
|
|
||||||
u64 offset = sizeof(INIHeader);
|
u64 offset = sizeof(INIHeader);
|
||||||
for (size_t i = 0; i < ini.process_count; ++i) {
|
for (size_t i = 0; i < ini.process_count; ++i) {
|
||||||
KIPHeader kip;
|
KIPHeader kip;
|
||||||
std::memcpy(&kip, c.data() + offset, sizeof(KIPHeader));
|
std::memcpy(&kip, c.data() + offset, sizeof(KIPHeader));
|
||||||
if (kip.magic != Common::MakeMagic('K', 'I', 'P', '1'))
|
if (kip.magic != Common::MakeMagic('K', 'I', 'P', '1'))
|
||||||
return;
|
return;
|
||||||
kips.emplace(offset, kip);
|
|
||||||
|
|
||||||
const auto name =
|
const auto name =
|
||||||
Common::StringFromFixedZeroTerminatedBuffer(kip.name.data(), kip.name.size());
|
Common::StringFromFixedZeroTerminatedBuffer(kip.name.data(), kip.name.size());
|
||||||
|
Loading…
Reference in New Issue
Block a user