Fix reading custom titles from WAD files

This commit is contained in:
Stevoisiak 2015-03-22 19:48:52 -04:00 committed by Steven V
parent 90167abe0f
commit afc1398fbd
1 changed files with 8 additions and 2 deletions

View File

@ -408,9 +408,15 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
break;
const size_t equals_index = line.find('=');
if (line.substr(0, equals_index - 1) == rISOFile.GetUniqueID())
std::string game_id = rISOFile.GetUniqueID();
// Ignore publisher ID for WAD files
if (rISOFile.GetPlatform() == DiscIO::IVolume::WII_WAD)
game_id.erase(game_id.size() - 2);
if (line.substr(0, equals_index - 1) == game_id)
{
name = StrToWxStr(line.substr(equals_index + 2));
name = StrToWxStr(StripSpaces(line.substr(equals_index + 1)));
break;
}
}