summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-08-20 17:34:18 -0400
committerGravatar Zach Hilman2018-08-20 17:34:18 -0400
commite8cb6f5c9be4480baa1f870d9cabcb0eab57397b (patch)
treee2646783b24affb4baed809a2dacb5d57e5f4bac /src/core
parentfilesystem: Add support for loading of system archives (diff)
downloadyuzu-e8cb6f5c9be4480baa1f870d9cabcb0eab57397b.tar.gz
yuzu-e8cb6f5c9be4480baa1f870d9cabcb0eab57397b.tar.xz
yuzu-e8cb6f5c9be4480baa1f870d9cabcb0eab57397b.zip
registration: Add Data_Unknown5 NCAContentType
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/content_archive.h1
-rw-r--r--src/core/file_sys/registered_cache.cpp2
-rw-r--r--src/core/file_sys/romfs_factory.cpp2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/core/file_sys/content_archive.h b/src/core/file_sys/content_archive.h
index b82e65ad5..4b74c54ec 100644
--- a/src/core/file_sys/content_archive.h
+++ b/src/core/file_sys/content_archive.h
@@ -27,6 +27,7 @@ enum class NCAContentType : u8 {
27 Control = 2, 27 Control = 2,
28 Manual = 3, 28 Manual = 3,
29 Data = 4, 29 Data = 4,
30 Data_Unknown5 = 5, ///< Seems to be used on some system archives
30}; 31};
31 32
32enum class NCASectionCryptoType : u8 { 33enum class NCASectionCryptoType : u8 {
diff --git a/src/core/file_sys/registered_cache.cpp b/src/core/file_sys/registered_cache.cpp
index b239c9e48..e90dc6695 100644
--- a/src/core/file_sys/registered_cache.cpp
+++ b/src/core/file_sys/registered_cache.cpp
@@ -77,7 +77,7 @@ static ContentRecordType GetCRTypeFromNCAType(NCAContentType type) {
77 case NCAContentType::Control: 77 case NCAContentType::Control:
78 return ContentRecordType::Control; 78 return ContentRecordType::Control;
79 case NCAContentType::Data: 79 case NCAContentType::Data:
80 case static_cast<NCAContentType>(0x05): ///< Seems to be used on some system archives 80 case NCAContentType::Data_Unknown5:
81 return ContentRecordType::Data; 81 return ContentRecordType::Data;
82 case NCAContentType::Manual: 82 case NCAContentType::Manual:
83 // TODO(DarkLordZach): Peek at NCA contents to differentiate Manual and Legal. 83 // TODO(DarkLordZach): Peek at NCA contents to differentiate Manual and Legal.
diff --git a/src/core/file_sys/romfs_factory.cpp b/src/core/file_sys/romfs_factory.cpp
index 7ba4042ca..1b3824a61 100644
--- a/src/core/file_sys/romfs_factory.cpp
+++ b/src/core/file_sys/romfs_factory.cpp
@@ -52,7 +52,7 @@ ResultVal<VirtualFile> RomFSFactory::Open(u64 title_id, StorageId storage, Conte
52 return MakeResult<VirtualFile>(romfs); 52 return MakeResult<VirtualFile>(romfs);
53 } 53 }
54 default: 54 default:
55 UNIMPLEMENTED_MSG("Unimplmented storage_id={:02X}", static_cast<u8>(storage)); 55 UNIMPLEMENTED_MSG("Unimplemented storage_id={:02X}", static_cast<u8>(storage));
56 } 56 }
57} 57}
58 58