mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06: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:
@ -129,6 +129,9 @@ GameFile::GameFile(const QString& fileName)
|
||||
}
|
||||
}
|
||||
|
||||
if (m_company.isEmpty() && m_unique_id.size() >= 6)
|
||||
m_company = QString::fromStdString(DiscIO::GetCompanyFromID(m_unique_id.mid(4, 2).toStdString()));
|
||||
|
||||
if (m_valid)
|
||||
{
|
||||
IniFile ini = SCoreStartupParameter::LoadGameIni(m_unique_id.toStdString(), m_revision);
|
||||
|
Reference in New Issue
Block a user