diff options
author | Lioncash <mathew1800@gmail.com> | 2019-03-19 20:14:52 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-03-19 20:58:38 +0100 |
commit | b8c7072206f8c31e2396a0a04385029aeeb62e68 (patch) | |
tree | 6f3b44bc8d06abe2d3a9a205986942533917d810 | |
parent | Merge pull request #2258 from lioncash/am (diff) | |
download | yuzu-b8c7072206f8c31e2396a0a04385029aeeb62e68.tar yuzu-b8c7072206f8c31e2396a0a04385029aeeb62e68.tar.gz yuzu-b8c7072206f8c31e2396a0a04385029aeeb62e68.tar.bz2 yuzu-b8c7072206f8c31e2396a0a04385029aeeb62e68.tar.lz yuzu-b8c7072206f8c31e2396a0a04385029aeeb62e68.tar.xz yuzu-b8c7072206f8c31e2396a0a04385029aeeb62e68.tar.zst yuzu-b8c7072206f8c31e2396a0a04385029aeeb62e68.zip |
-rw-r--r-- | src/core/file_sys/content_archive.h | 15 | ||||
-rw-r--r-- | src/core/file_sys/registered_cache.cpp | 2 |
2 files changed, 15 insertions, 2 deletions
diff --git a/src/core/file_sys/content_archive.h b/src/core/file_sys/content_archive.h index 5d4d05c82..15b9e6624 100644 --- a/src/core/file_sys/content_archive.h +++ b/src/core/file_sys/content_archive.h @@ -24,13 +24,26 @@ namespace FileSys { union NCASectionHeader; +/// Describes the type of content within an NCA archive. enum class NCAContentType : u8 { + /// Executable-related data Program = 0, + + /// Metadata. Meta = 1, + + /// Access control data. Control = 2, + + /// Information related to the game manual + /// e.g. Legal information, etc. Manual = 3, + + /// System data. Data = 4, - Data_Unknown5 = 5, ///< Seems to be used on some system archives + + /// Data that can be accessed by applications. + PublicData = 5, }; enum class NCASectionCryptoType : u8 { diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp index 128199063..1c6bacace 100644 --- a/src/core/file_sys/registered_cache.cpp +++ b/src/core/file_sys/registered_cache.cpp @@ -94,7 +94,7 @@ static ContentRecordType GetCRTypeFromNCAType(NCAContentType type) { case NCAContentType::Control: return ContentRecordType::Control; case NCAContentType::Data: - case NCAContentType::Data_Unknown5: + case NCAContentType::PublicData: return ContentRecordType::Data; case NCAContentType::Manual: // TODO(DarkLordZach): Peek at NCA contents to differentiate Manual and Legal. |