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:
parent
6fe2ab7fbf
commit
5af98db8c3
|
@ -401,7 +401,7 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
||||||
// Set the game's banner in the second column
|
// Set the game's banner in the second column
|
||||||
SetItemColumnImage(_Index, COLUMN_BANNER, ImageIndex);
|
SetItemColumnImage(_Index, COLUMN_BANNER, ImageIndex);
|
||||||
|
|
||||||
std::string name = rISOFile.GetName();
|
wxString name = rISOFile.GetName();
|
||||||
|
|
||||||
std::ifstream titlestxt;
|
std::ifstream titlestxt;
|
||||||
OpenFStream(titlestxt, File::GetUserPath(D_LOAD_IDX) + "titles.txt", std::ios::in);
|
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))
|
if (gameini.GetIfExists("EmuState", "Title", &title))
|
||||||
name = 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);
|
SetItem(_Index, COLUMN_MAKER, StrToWxStr(rISOFile.GetCompany()), -1);
|
||||||
|
|
||||||
// Emulation state
|
// Emulation state
|
||||||
|
|
Loading…
Reference in New Issue