From f78b94077e32e045d651d4592217587cca752217 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 29 Jun 2014 15:38:48 -0400 Subject: DiscIO: Centralize the banner pointer and validity boolean into IBannerLoader These are both used within the banner loaders, and IsValid is exactly the same. So this makes sense. --- Source/Core/DiscIO/BannerLoaderGC.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'Source/Core/DiscIO/BannerLoaderGC.cpp') diff --git a/Source/Core/DiscIO/BannerLoaderGC.cpp b/Source/Core/DiscIO/BannerLoaderGC.cpp index 5258eb66ab..09c675cb11 100644 --- a/Source/Core/DiscIO/BannerLoaderGC.cpp +++ b/Source/Core/DiscIO/BannerLoaderGC.cpp @@ -16,9 +16,7 @@ namespace DiscIO { CBannerLoaderGC::CBannerLoaderGC(DiscIO::IFileSystem& _rFileSystem, DiscIO::IVolume* volume) - : m_pBannerFile(nullptr) - , m_IsValid(false) - , m_country(volume->GetCountry()) + : m_country(volume->GetCountry()) { // load the opening.bnr size_t FileSize = (size_t) _rFileSystem.GetFileSize("opening.bnr"); @@ -49,12 +47,6 @@ CBannerLoaderGC::~CBannerLoaderGC() } } - -bool CBannerLoaderGC::IsValid() -{ - return m_IsValid; -} - std::vector CBannerLoaderGC::GetBanner(int* pWidth, int* pHeight) { std::vector Buffer; -- cgit v1.2.3