TitleDatabase: Add GetTitleName for title IDs

This commit is contained in:
Léo Lam
2017-10-08 18:23:11 +02:00
parent 239167245d
commit e1c0b8d011
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,8 @@
#include <string>
#include <unordered_map>
#include "Common/CommonTypes.h"
namespace Core
{
// Reader for title database files.
@ -25,6 +27,7 @@ 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;
// 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;