mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-04-19 11:00:51 -04:00
When NAND is damaged, show title names from save files
The earlier code always tried to use TitleDatabase for getting title names, but that didn't work for disc-based games, because there was no way to get the maker ID.
This commit is contained in:
@@ -166,12 +166,12 @@ std::string TitleDatabase::GetTitleName(const std::string& game_id, TitleType ty
|
||||
return iterator != map.end() ? iterator->second : "";
|
||||
}
|
||||
|
||||
std::string TitleDatabase::GetTitleName(u64 title_id) const
|
||||
std::string TitleDatabase::GetChannelName(u64 title_id) const
|
||||
{
|
||||
const std::string id{
|
||||
{static_cast<char>((title_id >> 24) & 0xff), static_cast<char>((title_id >> 16) & 0xff),
|
||||
static_cast<char>((title_id >> 8) & 0xff), static_cast<char>(title_id & 0xff)}};
|
||||
return GetTitleName(id, IOS::ES::IsChannel(title_id) ? TitleType::Channel : TitleType::Other);
|
||||
return GetTitleName(id, TitleType::Channel);
|
||||
}
|
||||
|
||||
std::string TitleDatabase::Describe(const std::string& game_id, TitleType type) const
|
||||
|
||||
Reference in New Issue
Block a user