Use GodMode9 naming scheme

This commit is contained in:
Pengfei
2021-07-01 15:22:38 +08:00
parent e2bef4d705
commit 19bc9d0210
7 changed files with 112 additions and 50 deletions
+11
View File
@@ -371,6 +371,17 @@ ResultStatus NCCHContainer::ReadCodesetName(std::string& name) {
return ResultStatus::Success;
}
ResultStatus NCCHContainer::ReadProductCode(std::string& product_code) {
ResultStatus result = Load();
if (result != ResultStatus::Success)
return result;
std::array<char, 17> data{};
std::memcpy(data.data(), ncch_header.product_code, 16);
product_code = data.data();
return ResultStatus::Success;
}
ResultStatus NCCHContainer::ReadEncryptionType(EncryptionType& encryption) {
ResultStatus result = Load();
if (result != ResultStatus::Success)