summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/GameFile.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2018-03-30 12:01:55 +0200
committerJosJuice <josjuice@gmail.com>2018-03-30 12:04:01 +0200
commita7ba69e16a7c0a7725d35f6c5bfe66db01aaa6a9 (patch)
tree4e9270aff7ec6e78d4b84a496c90942b198a40dd /Source/Core/UICommon/GameFile.cpp
parentc3398c9e2c1c5072b0570d8b6f277a6c127370d1 (diff)
Fix loading Wii banners for games that initially were cached without banners
Fixes https://bugs.dolphin-emu.org/issues/10969
Diffstat (limited to 'Source/Core/UICommon/GameFile.cpp')
-rw-r--r--Source/Core/UICommon/GameFile.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/UICommon/GameFile.cpp b/Source/Core/UICommon/GameFile.cpp
index e28ef3b274..c2d9624c43 100644
--- a/Source/Core/UICommon/GameFile.cpp
+++ b/Source/Core/UICommon/GameFile.cpp
@@ -222,9 +222,11 @@ bool GameFile::BannerChanged()
if (!DiscIO::IsWii(m_platform))
return false;
- m_volume_banner.buffer =
- DiscIO::WiiSaveBanner(m_title_id).GetBanner(&m_volume_banner.width, &m_volume_banner.height);
- if (m_volume_banner.buffer.empty())
+ m_pending.volume_banner.buffer =
+ DiscIO::WiiSaveBanner(m_title_id)
+ .GetBanner(&m_pending.volume_banner.width, &m_pending.volume_banner.height);
+
+ if (m_pending.volume_banner.buffer.empty())
return false;
// We only reach here if m_volume_banner was empty, so we can always return true