Browse Source

Fix ASSERT in some of the new updates

pull/2502/head
MaranBr 6 months ago
parent
commit
91a1087064
  1. 6
      src/core/file_sys/fssystem/fssystem_nca_header.cpp

6
src/core/file_sys/fssystem/fssystem_nca_header.cpp

@ -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…
Cancel
Save