Allow displaying of the full title in the interface, as well as use the full title in the search filter

This commit is contained in:
vitor-k 2019-09-04 23:15:37 -03:00
parent d6f2bc8c04
commit f9cded05fd
6 changed files with 43 additions and 4 deletions

View file

@ -48,6 +48,10 @@ std::array<u16, 0x40> SMDH::GetShortTitle(Loader::SMDH::TitleLanguage language)
return titles[static_cast<int>(language)].short_title;
}
std::array<u16, 0x80> SMDH::GetLongTitle(Loader::SMDH::TitleLanguage language) const {
return titles[static_cast<int>(language)].long_title;
}
std::vector<SMDH::GameRegion> SMDH::GetRegions() const {
constexpr u32 REGION_COUNT = 7;
std::vector<GameRegion> result;

View file

@ -86,6 +86,13 @@ struct SMDH {
*/
std::array<u16, 0x40> GetShortTitle(Loader::SMDH::TitleLanguage language) const;
/**
* Gets the long game title from SMDH
* @param language title language
* @return UTF-16 array of the long title
*/
std::array<u16, 0x80> GetLongTitle(Loader::SMDH::TitleLanguage language) const;
std::vector<GameRegion> GetRegions() const;
};
static_assert(sizeof(SMDH) == 0x36C0, "SMDH structure size is wrong");