diff options
| author | JosJuice <josjuice@gmail.com> | 2015-05-24 17:41:53 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2015-05-24 17:41:53 +0200 |
| commit | d2e6adb045179b9e8c132ade0620820b7c494ac5 (patch) | |
| tree | 33117280c4ba10782d051d4a017d6c85d31a13be /Source/Core/DolphinWX/ISOFile.cpp | |
| parent | a784a12b5179db6544502ebac114b9ec425bebe8 (diff) | |
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.
Diffstat (limited to 'Source/Core/DolphinWX/ISOFile.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/ISOFile.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp index 24d6c202fe..7538153460 100644 --- a/Source/Core/DolphinWX/ISOFile.cpp +++ b/Source/Core/DolphinWX/ISOFile.cpp @@ -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); |
