diff options
| author | JosJuice <josjuice@gmail.com> | 2015-12-03 17:29:59 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2015-12-03 17:29:59 +0100 |
| commit | a0cd753060fb8b2701c4e1733cc56da4523f852c (patch) | |
| tree | c458ee7ffc253bed518343bd3ec59cddf5e2bc52 /Source/Core/DiscIO/VolumeWad.cpp | |
| parent | a5904b522d4bb73e24e8d453566cc1cdcd1b7ccb (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.cpp | 12 |
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; |
