summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/ISOFile.cpp
diff options
context:
space:
mode:
authorAnthony Serna <Helios747@users.noreply.github.com>2016-06-25 10:31:46 -0500
committerGitHub <noreply@github.com>2016-06-25 10:31:46 -0500
commit64cf74abb4158ffabe8b5dce3c1a4d42a82b054f (patch)
tree9ced49cda44840936e4130d2d3a762473705c244 /Source/Core/DolphinWX/ISOFile.cpp
parent384637bdb82ac2ce1c87984c1b19594b7f3b2ddc (diff)
parentb5104a79f1d39d2d7d160f2bd984f604a5ae2797 (diff)
Merge pull request #3678 from rukai/dolphinQtPropertiesDialog
DQt2: properties dialog - info tab
Diffstat (limited to 'Source/Core/DolphinWX/ISOFile.cpp')
-rw-r--r--Source/Core/DolphinWX/ISOFile.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp
index e61fb9875f..95b9a02e2a 100644
--- a/Source/Core/DolphinWX/ISOFile.cpp
+++ b/Source/Core/DolphinWX/ISOFile.cpp
@@ -47,7 +47,8 @@ static std::string GetLanguageString(DiscIO::IVolume::ELanguage language,
if (it != end)
return it->second;
- // English tends to be a good fallback when the requested language isn't available
+ // English tends to be a good fallback when the requested language isn't
+ // available
if (language != DiscIO::IVolume::ELanguage::LANGUAGE_ENGLISH)
{
it = strings.find(DiscIO::IVolume::ELanguage::LANGUAGE_ENGLISH);
@@ -92,9 +93,13 @@ GameListItem::GameListItem(const std::string& _rFileName,
{
m_Platform = volume->GetVolumeType();
- m_names = volume->GetNames(true);
m_descriptions = volume->GetDescriptions();
- m_company = volume->GetCompany();
+ m_names = volume->GetLongNames();
+ if (m_names.empty())
+ m_names = volume->GetShortNames();
+ m_company = GetLanguageString(DiscIO::IVolume::LANGUAGE_ENGLISH, volume->GetLongMakers());
+ if (m_company.empty())
+ m_company = GetLanguageString(DiscIO::IVolume::LANGUAGE_ENGLISH, volume->GetShortMakers());
m_Country = volume->GetCountry();
m_blob_type = volume->GetBlobType();
@@ -145,13 +150,16 @@ GameListItem::GameListItem(const std::string& _rFileName,
std::string path, name;
SplitPath(m_FileName, &path, &name, nullptr);
- // A bit like the Homebrew Channel icon, except there can be multiple files in a folder with their
+ // A bit like the Homebrew Channel icon, except there can be multiple files in
+ // a folder with their
// own icons.
- // Useful for those who don't want to have a Homebrew Channel-style folder structure.
+ // Useful for those who don't want to have a Homebrew Channel-style folder
+ // structure.
if (ReadPNGBanner(path + name + ".png"))
return;
- // Homebrew Channel icon. Typical for DOLs and ELFs, but can be also used with volumes.
+ // Homebrew Channel icon. Typical for DOLs and ELFs, but can be also used with
+ // volumes.
if (ReadPNGBanner(path + "icon.png"))
return;