Read custom titles from wiitdb.txt if titles.txt is not found

This commit is contained in:
Stevoisiak 2015-03-19 22:37:41 -04:00 committed by Steven V
parent 134a18fdad
commit c2bbcdd16c
1 changed files with 7 additions and 0 deletions

View File

@ -388,9 +388,16 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
wxString name = StrToWxStr(rISOFile.GetName());
// Attempt to load game titles from titles.txt
// http://www.gametdb.com/Wii/Downloads
std::ifstream titlestxt;
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)
{
while (!titlestxt.eof())