mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 10:23:01 -06:00
registration: Add Data_Unknown5 NCAContentType
This commit is contained in:
parent
27da7bc9da
commit
e8cb6f5c9b
3 changed files with 3 additions and 2 deletions
|
@ -27,6 +27,7 @@ enum class NCAContentType : u8 {
|
||||||
Control = 2,
|
Control = 2,
|
||||||
Manual = 3,
|
Manual = 3,
|
||||||
Data = 4,
|
Data = 4,
|
||||||
|
Data_Unknown5 = 5, ///< Seems to be used on some system archives
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class NCASectionCryptoType : u8 {
|
enum class NCASectionCryptoType : u8 {
|
||||||
|
|
|
@ -77,7 +77,7 @@ static ContentRecordType GetCRTypeFromNCAType(NCAContentType type) {
|
||||||
case NCAContentType::Control:
|
case NCAContentType::Control:
|
||||||
return ContentRecordType::Control;
|
return ContentRecordType::Control;
|
||||||
case NCAContentType::Data:
|
case NCAContentType::Data:
|
||||||
case static_cast<NCAContentType>(0x05): ///< Seems to be used on some system archives
|
case NCAContentType::Data_Unknown5:
|
||||||
return ContentRecordType::Data;
|
return ContentRecordType::Data;
|
||||||
case NCAContentType::Manual:
|
case NCAContentType::Manual:
|
||||||
// TODO(DarkLordZach): Peek at NCA contents to differentiate Manual and Legal.
|
// TODO(DarkLordZach): Peek at NCA contents to differentiate Manual and Legal.
|
||||||
|
|
|
@ -52,7 +52,7 @@ ResultVal<VirtualFile> RomFSFactory::Open(u64 title_id, StorageId storage, Conte
|
||||||
return MakeResult<VirtualFile>(romfs);
|
return MakeResult<VirtualFile>(romfs);
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
UNIMPLEMENTED_MSG("Unimplmented storage_id={:02X}", static_cast<u8>(storage));
|
UNIMPLEMENTED_MSG("Unimplemented storage_id={:02X}", static_cast<u8>(storage));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue