Read custom titles from wiitdb.txt if titles.txt is not found
This commit is contained in:
parent
134a18fdad
commit
c2bbcdd16c
|
@ -388,9 +388,16 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
||||||
|
|
||||||
wxString name = StrToWxStr(rISOFile.GetName());
|
wxString name = StrToWxStr(rISOFile.GetName());
|
||||||
|
|
||||||
|
// Attempt to load game titles from titles.txt
|
||||||
|
// http://www.gametdb.com/Wii/Downloads
|
||||||
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);
|
||||||
|
|
||||||
|
if (!titlestxt.is_open())
|
||||||
|
{
|
||||||
|
OpenFStream(titlestxt, File::GetUserPath(D_LOAD_IDX) + "wiitdb.txt", std::ios::in);
|
||||||
|
}
|
||||||
|
|
||||||
if (titlestxt.is_open() && rISOFile.GetUniqueID().size() > 3)
|
if (titlestxt.is_open() && rISOFile.GetUniqueID().size() > 3)
|
||||||
{
|
{
|
||||||
while (!titlestxt.eof())
|
while (!titlestxt.eof())
|
||||||
|
|
Loading…
Reference in New Issue