mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-23 04:12:02 +00:00
fusee_cpp: only check pk11 header2 on mariko (thanks @slp32)
This commit is contained in:
parent
c2a930965a
commit
7ea9b533d9
1 changed files with 3 additions and 3 deletions
|
@ -211,11 +211,11 @@ namespace ams::nxboot {
|
||||||
se::DecryptAes128Cbc(package1 + 0x20, 0x40000 - (0x20 + 0x170), pkg1::AesKeySlot_MarikoBek, package1 + 0x20, 0x40000 - (0x20 + 0x170), iv, sizeof(iv));
|
se::DecryptAes128Cbc(package1 + 0x20, 0x40000 - (0x20 + 0x170), pkg1::AesKeySlot_MarikoBek, package1 + 0x20, 0x40000 - (0x20 + 0x170), iv, sizeof(iv));
|
||||||
|
|
||||||
hw::InvalidateDataCache(package1 + 0x20, 0x40000 - (0x20 + 0x170));
|
hw::InvalidateDataCache(package1 + 0x20, 0x40000 - (0x20 + 0x170));
|
||||||
}
|
|
||||||
|
|
||||||
if (std::memcmp(package1, package1 + 0x20, 0x20) != 0) {
|
if (std::memcmp(package1, package1 + 0x20, 0x20) != 0) {
|
||||||
ShowFatalError("Package1 seems corrupt!\n");
|
ShowFatalError("Package1 seems corrupt!\n");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return package1;
|
return package1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue