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:
parent
c3398c9e2c
commit
a7ba69e16a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue