diff options
| author | JosJuice <josjuice@gmail.com> | 2015-06-13 16:37:37 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2015-06-14 12:23:41 +0200 |
| commit | 8793f7c325f7164f0cfe3095f697ef9bf5473344 (patch) | |
| tree | 53234dd04e2194e9f8e81168c7279ca3a52dd288 /Source/Core/DolphinQt/GameList/GameFile.cpp | |
| parent | 6d9711c02ce969cb6da94105b6b2fa26e7ceabbb (diff) | |
DolphinQt: Store GameFile banner as empty if missing
Diffstat (limited to 'Source/Core/DolphinQt/GameList/GameFile.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/GameList/GameFile.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameFile.cpp b/Source/Core/DolphinQt/GameList/GameFile.cpp index a89b5ce9ad..df363410f3 100644 --- a/Source/Core/DolphinQt/GameList/GameFile.cpp +++ b/Source/Core/DolphinQt/GameList/GameFile.cpp @@ -22,7 +22,6 @@ #include "DiscIO/Filesystem.h" #include "DolphinQt/GameList/GameFile.h" -#include "DolphinQt/Utils/Resources.h" #include "DolphinQt/Utils/Utils.h" static const u32 CACHE_REVISION = 0x00A; @@ -72,12 +71,9 @@ static QString GetLanguageString(DiscIO::IVolume::ELanguage language, QMap<DiscI GameFile::GameFile(const QString& fileName) : m_file_name(fileName) { - bool hasBanner = false; - if (LoadFromCache()) { m_valid = true; - hasBanner = true; } else { @@ -115,15 +111,13 @@ GameFile::GameFile(const QString& fileName) (buffer[i] & 0x0000FF) >> 0)); } + m_valid = true; + if (!banner.isNull()) { - hasBanner = true; m_banner = QPixmap::fromImage(banner); - } - - m_valid = true; - if (hasBanner) SaveToCache(); + } } } @@ -138,9 +132,6 @@ GameFile::GameFile(const QString& fileName) ini.GetIfExists("EmuState", "EmulationIssues", &issues_temp); m_issues = QString::fromStdString(issues_temp); } - - if (!hasBanner) - m_banner = Resources::GetPixmap(Resources::BANNER_MISSING); } bool GameFile::LoadFromCache() |
