Skip to content

Commit

Permalink
Fix reading custom titles from WAD files
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevoisiak committed Apr 9, 2015
1 parent 0479b67 commit af998db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Source/Core/DolphinWX/GameListCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,13 @@ 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() == GameListItem::WII_WAD)
game_id.erase(game_id.size() - 2);

if (line.substr(0, equals_index - 1) == game_id)
{
name = line.substr(equals_index + 2);
break;
Expand Down

0 comments on commit af998db

Please sign in to comment.