mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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.
This commit is contained in:
@ -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<u32> CBannerLoaderGC::GetBanner(int* pWidth, int* pHeight)
|
||||
{
|
||||
std::vector<u32> Buffer;
|
||||
|
Reference in New Issue
Block a user