Fix ASSERT in some of the new updates
All checks were successful
eden-license / license-header (pull_request) Successful in 39s
All checks were successful
eden-license / license-header (pull_request) Successful in 39s
This commit is contained in:
parent
2fc272ecc4
commit
91a1087064
1 changed files with 2 additions and 4 deletions
|
@ -13,13 +13,11 @@ u8 NcaHeader::GetProperKeyGeneration() const {
|
|||
}
|
||||
|
||||
bool NcaPatchInfo::HasIndirectTable() const {
|
||||
static constexpr unsigned char BKTR[4] = {'B', 'K', 'T', 'R'};
|
||||
return std::memcmp(indirect_header.data(), BKTR, sizeof(BKTR)) == 0;
|
||||
return this->indirect_size != 0;
|
||||
}
|
||||
|
||||
bool NcaPatchInfo::HasAesCtrExTable() const {
|
||||
static constexpr unsigned char BKTR[4] = {'B', 'K', 'T', 'R'};
|
||||
return std::memcmp(aes_ctr_ex_header.data(), BKTR, sizeof(BKTR)) == 0;
|
||||
return this->aes_ctr_ex_size != 0;
|
||||
}
|
||||
|
||||
} // namespace FileSys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue