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:
JosJuice
2017-11-02 17:34:04 +01:00
parent 5a6d90900e
commit 6902bbb696
5 changed files with 51 additions and 13 deletions

View File

@ -27,7 +27,9 @@ public:
// Get a user friendly title name for a game ID.
// This falls back to returning an empty string if none could be found.
std::string GetTitleName(const std::string& game_id, TitleType = TitleType::Other) const;
std::string GetTitleName(u64 title_id) const;
// Same as above, but takes a title ID instead of a game ID, and can only find names of channels.
std::string GetChannelName(u64 title_id) const;
// Get a description for a game ID (title name if available + game ID).
std::string Describe(const std::string& game_id, TitleType = TitleType::Other) const;