mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-01 15:16:22 +00: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:
parent
d800b5fb74
commit
f78b94077e
5 changed files with 13 additions and 30 deletions
|
@ -19,18 +19,27 @@ class IBannerLoader
|
|||
{
|
||||
public:
|
||||
IBannerLoader()
|
||||
: m_pBannerFile(nullptr)
|
||||
, m_IsValid(false)
|
||||
{}
|
||||
|
||||
virtual ~IBannerLoader()
|
||||
{}
|
||||
|
||||
virtual bool IsValid() = 0;
|
||||
|
||||
virtual std::vector<u32> GetBanner(int* pWidth, int* pHeight) = 0;
|
||||
|
||||
virtual std::vector<std::string> GetNames() = 0;
|
||||
virtual std::string GetCompany() = 0;
|
||||
virtual std::vector<std::string> GetDescriptions() = 0;
|
||||
|
||||
bool IsValid()
|
||||
{
|
||||
return m_IsValid;
|
||||
}
|
||||
|
||||
protected:
|
||||
bool m_IsValid;
|
||||
u8* m_pBannerFile;
|
||||
};
|
||||
|
||||
IBannerLoader* CreateBannerLoader(DiscIO::IFileSystem& _rFileSystem, DiscIO::IVolume *pVolume);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue