mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-01 10:31:31 +02:00
Fix reading custom titles from WAD files
This commit is contained in:
parent
90167abe0f
commit
afc1398fbd
@ -408,9 +408,15 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
const size_t equals_index = line.find('=');
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user