mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
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:
parent
a436c6182b
commit
3af09da0f3
2 changed files with 9 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "DolphinWX/ISOProperties/InfoPanel.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cinttypes>
|
||||
#include <iterator>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
@ -190,7 +191,11 @@ void InfoPanel::LoadISODetails()
|
|||
{
|
||||
const IOS::ES::TMDReader tmd = m_opened_iso->GetTMD(m_opened_iso->GetGamePartition());
|
||||
if (tmd.IsValid())
|
||||
{
|
||||
m_ios_version->SetValue(StringFromFormat("IOS%u", static_cast<u32>(tmd.GetIOSId())));
|
||||
m_game_id->SetValue(StrToWxStr(StringFromFormat(
|
||||
"%s (%016" PRIx64 ")", m_opened_iso->GetGameID().c_str(), tmd.GetTitleId())));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue