mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Use an ID-to-name map when volume has no company string
This is written so that the result of GetCompanyFromID never is cached (except on Android?). Caching is unnecessary because the string can be obtained quickly at runtime, and not caching it means that the cache doesn't have to be invalidated when GetCompanyFromID is edited.
This commit is contained in:
parent
a784a12b51
commit
d2e6adb045
5 changed files with 411 additions and 4 deletions
|
@ -122,6 +122,9 @@ GameListItem::GameListItem(const std::string& _rFileName)
|
|||
}
|
||||
}
|
||||
|
||||
if (m_company.empty() && m_UniqueID.size() >= 6)
|
||||
m_company = DiscIO::GetCompanyFromID(m_UniqueID.substr(4, 2));
|
||||
|
||||
if (IsValid())
|
||||
{
|
||||
IniFile ini = SCoreStartupParameter::LoadGameIni(m_UniqueID, m_Revision);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue