summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/fssystem/fssystem_nca_header.cpp
blob: bf5742d39f872105603aae94f373660faed35992 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#include "core/file_sys/fssystem/fssystem_nca_header.h"

namespace FileSys {

u8 NcaHeader::GetProperKeyGeneration() const {
    return std::max(this->key_generation, this->key_generation_2);
}

bool NcaPatchInfo::HasIndirectTable() const {
    return this->indirect_size != 0;
}

bool NcaPatchInfo::HasAesCtrExTable() const {
    return this->aes_ctr_ex_size != 0;
}

} // namespace FileSys