filesystem: Add support for loading of system archives

This commit is contained in:
Zach Hilman
2018-08-18 21:28:17 -04:00
parent 367feaefa0
commit 27da7bc9da
7 changed files with 99 additions and 20 deletions

View File

@ -77,12 +77,13 @@ static ContentRecordType GetCRTypeFromNCAType(NCAContentType type) {
case NCAContentType::Control:
return ContentRecordType::Control;
case NCAContentType::Data:
case static_cast<NCAContentType>(0x05): ///< Seems to be used on some system archives
return ContentRecordType::Data;
case NCAContentType::Manual:
// TODO(DarkLordZach): Peek at NCA contents to differentiate Manual and Legal.
return ContentRecordType::Manual;
default:
UNREACHABLE();
UNREACHABLE_MSG("Invalid NCAContentType={:02X}", static_cast<u8>(type));
}
}