summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeWad.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2015-12-03 17:29:59 +0100
committerJosJuice <josjuice@gmail.com>2015-12-03 17:29:59 +0100
commita0cd753060fb8b2701c4e1733cc56da4523f852c (patch)
treec458ee7ffc253bed518343bd3ec59cddf5e2bc52 /Source/Core/DiscIO/VolumeWad.cpp
parenta5904b522d4bb73e24e8d453566cc1cdcd1b7ccb (diff)
Don't read from volume when reloading Wii banners
Should make loading cached Wii games that lack banners slightly faster.
Diffstat (limited to 'Source/Core/DiscIO/VolumeWad.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeWad.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/VolumeWad.cpp b/Source/Core/DiscIO/VolumeWad.cpp
index 7a998b17d0..db6dc440a5 100644
--- a/Source/Core/DiscIO/VolumeWad.cpp
+++ b/Source/Core/DiscIO/VolumeWad.cpp
@@ -127,6 +127,18 @@ std::map<IVolume::ELanguage, std::string> CVolumeWAD::GetNames(bool prefer_long)
return ReadWiiNames(name_data);
}
+std::vector<u32> CVolumeWAD::GetBanner(int* width, int* height) const
+{
+ *width = 0;
+ *height = 0;
+
+ u64 title_id;
+ if (!GetTitleID(&title_id))
+ return std::vector<u32>();
+
+ return GetWiiBanner(width, height, title_id);
+}
+
BlobType CVolumeWAD::GetBlobType() const
{
return m_pReader ? m_pReader->GetBlobType() : BlobType::PLAIN;