summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/ISOFile.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2017-11-02 17:05:45 +0100
committerJosJuice <josjuice@gmail.com>2017-11-03 23:00:43 +0100
commit5a6d90900ec2dcf8ebec4182c29019ca5537c89f (patch)
tree8f7c3c349e6a8a54078672186558a2f0a633b1bf /Source/Core/DolphinWX/ISOFile.cpp
parentc8710d0861fb991d860955a221c02507b55cdd2d (diff)
Add WiiSaveBanner class
This class is similar to the BannerLoaderWii class that was removed in ee694e32.
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);