diff options
| author | comex <comexk@gmail.com> | 2013-09-25 03:05:36 -0400 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2013-09-25 03:06:27 -0400 |
| commit | 18abc33306bd1bfe8ecc590666da9d7fa3a9b86d (patch) | |
| tree | 8684f15a0033488fc777a4aefb07901b2dac8422 /Source/Core/DiscIO/Src/BannerLoaderGC.cpp | |
| parent | 0787019cbe583439f8a356b09406fcba0a287019 (diff) | |
2x banner images!
Diffstat (limited to 'Source/Core/DiscIO/Src/BannerLoaderGC.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/BannerLoaderGC.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Source/Core/DiscIO/Src/BannerLoaderGC.cpp b/Source/Core/DiscIO/Src/BannerLoaderGC.cpp index 58b79d12db..cbe09c5804 100644 --- a/Source/Core/DiscIO/Src/BannerLoaderGC.cpp +++ b/Source/Core/DiscIO/Src/BannerLoaderGC.cpp @@ -50,17 +50,15 @@ bool CBannerLoaderGC::IsValid() return m_IsValid; } -bool CBannerLoaderGC::GetBanner(u32* _pBannerImage) +std::vector<u32> CBannerLoaderGC::GetBanner(int* pWidth, int* pHeight) { - if (!IsValid()) - { - return false; - } - + std::vector<u32> Buffer; + Buffer.resize(DVD_BANNER_WIDTH * DVD_BANNER_HEIGHT); auto const pBanner = (DVDBanner*)m_pBannerFile; - decode5A3image(_pBannerImage, pBanner->image, DVD_BANNER_WIDTH, DVD_BANNER_HEIGHT); - - return true; + decode5A3image(&Buffer[0], pBanner->image, DVD_BANNER_WIDTH, DVD_BANNER_HEIGHT); + *pWidth = DVD_BANNER_WIDTH; + *pHeight = DVD_BANNER_HEIGHT; + return std::move(Buffer); } |
