mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 00:38:58 +00:00
Added a fallback title based on codeset info
This commit is contained in:
@@ -374,6 +374,21 @@ bool NCCHContainer<File>::HasExHeader() {
|
||||
return has_exheader;
|
||||
}
|
||||
|
||||
template <typename File>
|
||||
ResultStatus NCCHContainer<File>::ReadCodesetName(std::string& name) {
|
||||
ResultStatus result = Load();
|
||||
if (result != ResultStatus::Success)
|
||||
return result;
|
||||
|
||||
if (!has_exheader)
|
||||
return ResultStatus::ErrorNotUsed;
|
||||
|
||||
std::array<char, 9> name_data{};
|
||||
std::memcpy(name_data.data(), exheader_header.codeset_info.name, 8);
|
||||
name = name_data.data();
|
||||
return ResultStatus::Success;
|
||||
}
|
||||
|
||||
template <typename File>
|
||||
ResultStatus NCCHContainer<File>::ReadEncryptionType(EncryptionType& encryption) {
|
||||
ResultStatus result = Load();
|
||||
|
||||
Reference in New Issue
Block a user