summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/ISOFile.cpp
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2017-11-06 23:11:34 -0800
committerGitHub <noreply@github.com>2017-11-06 23:11:34 -0800
commit835eff15a18fab15ee8c08241dd9b1588dd428ca (patch)
tree265c7f03f3b285142567431f3e677713bcfd4824 /Source/Core/DolphinWX/ISOFile.cpp
parentd378811271a75d4b6454c157b1a2e6000ec425d1 (diff)
parent1dc2a85ccc2e3a23b9cd33d1503038223bfae320 (diff)
Merge pull request #6162 from JosJuice/nand-check-save-game-name
When NAND is damaged, show title names from save files
Diffstat (limited to 'Source/Core/DolphinWX/ISOFile.cpp')
-rw-r--r--Source/Core/DolphinWX/ISOFile.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp
index 910295b7b2..65e5201dd6 100644
--- a/Source/Core/DolphinWX/ISOFile.cpp
+++ b/Source/Core/DolphinWX/ISOFile.cpp
@@ -34,6 +34,7 @@
#include "DiscIO/Blob.h"
#include "DiscIO/Enums.h"
#include "DiscIO/Volume.h"
+#include "DiscIO/WiiSaveBanner.h"
#include "DolphinWX/ISOFile.h"
#include "DolphinWX/WxUtils.h"
@@ -263,8 +264,9 @@ bool GameListItem::BannerChanged()
return false;
auto& banner = m_pending.volume_banner;
- std::vector<u32> buffer = DiscIO::Volume::GetWiiBanner(&banner.width, &banner.height, m_title_id);
- if (!buffer.size())
+ std::vector<u32> buffer =
+ DiscIO::WiiSaveBanner(m_title_id).GetBanner(&banner.width, &banner.height);
+ if (buffer.empty())
return false;
ReadVolumeBanner(&banner.buffer, buffer, banner.width, banner.height);