Append Disc 2 to Titles for Multi-Disc Games

Fixes issue 5799

https://code.google.com/p/dolphin-emu/issues/detail?id=5799
This commit is contained in:
Chris Burgener 2015-02-02 13:35:46 -05:00 committed by Fog
parent 6fe2ab7fbf
commit 5af98db8c3
1 changed files with 5 additions and 2 deletions

View File

@ -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