mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-28 05:52:38 +00:00
Add WiiSaveBanner class
This class is similar to the BannerLoaderWii class that was
removed in ee694e32
.
This commit is contained in:
parent
c8710d0861
commit
5a6d90900e
12 changed files with 150 additions and 51 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue