Fix loading Wii banners for games that initially were cached without banners

Fixes https://bugs.dolphin-emu.org/issues/10969
This commit is contained in:
JosJuice 2018-03-30 12:01:55 +02:00
parent c3398c9e2c
commit a7ba69e16a
1 changed files with 5 additions and 3 deletions

View File

@ -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