UI: Show title ID in info panel

Add a way to easily get the title ID of a game. For Wii titles, it's
sometimes more useful to know than the game ID.
This commit is contained in:
Léo Lam
2018-03-07 17:31:04 +01:00
parent a436c6182b
commit 3af09da0f3
2 changed files with 9 additions and 1 deletions

View File

@ -32,7 +32,10 @@ QGroupBox* InfoWidget::CreateISODetails()
QLineEdit* file_path = CreateValueDisplay(m_game.GetFilePath());
QLineEdit* internal_name = CreateValueDisplay(m_game.GetInternalName());
QLineEdit* game_id = CreateValueDisplay(m_game.GetGameID());
QString game_id_string = m_game.GetGameID();
if (const u64 title_id = m_game.GetTitleID())
game_id_string += QStringLiteral(" (%1)").arg(title_id, 16, 16, QLatin1Char('0'));
QLineEdit* game_id = CreateValueDisplay(game_id_string);
QLineEdit* country = CreateValueDisplay(m_game.GetCountry());
QLineEdit* maker = CreateValueDisplay(m_game.GetMaker());
QLineEdit* maker_id = CreateValueDisplay(QStringLiteral("0x") + m_game.GetMakerID());