diff --git a/Core/Config.cpp b/Core/Config.cpp index e0b0687294..b07af66c65 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -449,6 +449,7 @@ static ConfigSetting generalSettings[] = { ConfigSetting("RewindFlipFrequency", &g_Config.iRewindFlipFrequency, 0, true, true), ConfigSetting("ShowRegionOnGameIcon", &g_Config.bShowRegionOnGameIcon, false, true, true), + ConfigSetting("ShowIDOnGameIcon", &g_Config.bShowIDOnGameIcon, false, true, true), ConfigSetting("GridView1", &g_Config.bGridView1, true), ConfigSetting("GridView2", &g_Config.bGridView2, true), ConfigSetting("GridView3", &g_Config.bGridView3, false), diff --git a/Core/Config.h b/Core/Config.h index f8bff721b7..861780b5da 100644 --- a/Core/Config.h +++ b/Core/Config.h @@ -210,6 +210,7 @@ public: bool bShowDebuggerOnLoad; int iShowFPSCounter; bool bShowRegionOnGameIcon; + bool bShowIDOnGameIcon; // TODO: Maybe move to a separate theme system. uint32_t uItemStyleFg; diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 62e15a50c7..fbe8794e63 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -718,6 +718,7 @@ void GameSettingsScreen::CreateViews() { #endif systemSettings->Add(new CheckBox(&g_Config.bCheckForNewVersion, sy->T("VersionCheck", "Check for new versions of PPSSPP"))); + systemSettings->Add(new CheckBox(&g_Config.bShowIDOnGameIcon, sy->T("Show ID on game icon"))); systemSettings->Add(new CheckBox(&g_Config.bShowRegionOnGameIcon, sy->T("Show region on game icon"))); if (g_Config.iMaxRecent > 0) systemSettings->Add(new Choice(sy->T("Clear Recent Games List")))->OnClick.Handle(this, &GameSettingsScreen::OnClearRecents); diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index dbea36065a..43eb46f02d 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -374,6 +374,12 @@ void GameButton::Draw(UIContext &dc) { }; dc.Draw()->DrawImage(regionIcons[ginfo->region], x + w - ui_images[regionIcons[ginfo->region]].w - 5, y + h - ui_images[regionIcons[ginfo->region]].h - 5, 1.0f); } + if (g_Config.bShowIDOnGameIcon) { + dc.SetFontScale(0.5f, 0.5f); + dc.DrawText(ginfo->id_version.c_str(), x+3, y+1, 0xFF000000, ALIGN_TOPLEFT); + dc.DrawText(ginfo->id_version.c_str(), x+2, y, 0xFFffFFff, ALIGN_TOPLEFT); + dc.SetFontScale(1.0f, 1.0f); + } if (overlayColor) { dc.FillRect(Drawable(overlayColor), overlayBounds); }