From 5af98db8c3f7aac7f096b914be5d427d4be65db9 Mon Sep 17 00:00:00 2001 From: Chris Burgener Date: Mon, 2 Feb 2015 13:35:46 -0500 Subject: [PATCH] Append Disc 2 to Titles for Multi-Disc Games Fixes issue 5799 https://code.google.com/p/dolphin-emu/issues/detail?id=5799 --- Source/Core/DolphinWX/GameListCtrl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/GameListCtrl.cpp b/Source/Core/DolphinWX/GameListCtrl.cpp index d4b7d85bcf..24f950eb2a 100644 --- a/Source/Core/DolphinWX/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/GameListCtrl.cpp @@ -401,7 +401,7 @@ void CGameListCtrl::InsertItemInReportView(long _Index) // Set the game's banner in the second column SetItemColumnImage(_Index, COLUMN_BANNER, ImageIndex); - std::string name = rISOFile.GetName(); + wxString name = rISOFile.GetName(); std::ifstream titlestxt; OpenFStream(titlestxt, File::GetUserPath(D_LOAD_IDX) + "titles.txt", std::ios::in); @@ -429,7 +429,10 @@ void CGameListCtrl::InsertItemInReportView(long _Index) if (gameini.GetIfExists("EmuState", "Title", &title)) name = title; - SetItem(_Index, COLUMN_TITLE, StrToWxStr(name), -1); + if (rISOFile.IsDiscTwo() && name.find("Disc 2") == std::string::npos) + name = wxString::Format(_("%s (Disc 2)"), name.c_str()); + + SetItem(_Index, COLUMN_TITLE, name, -1); SetItem(_Index, COLUMN_MAKER, StrToWxStr(rISOFile.GetCompany()), -1); // Emulation state