mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-06 17:48:08 +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
|
@ -23,8 +23,6 @@ public:
|
|||
|
||||
virtual ~CBannerLoaderWii();
|
||||
|
||||
virtual bool IsValid() override;
|
||||
|
||||
virtual std::vector<u32> GetBanner(int* pWidth, int* pHeight) override;
|
||||
|
||||
virtual std::vector<std::string> GetNames() override;
|
||||
|
@ -57,11 +55,7 @@ private:
|
|||
u16 m_Comment[2][COMMENT_SIZE];
|
||||
u8 m_BannerTexture[TEXTURE_SIZE];
|
||||
u8 m_IconTexture[8][ICON_SIZE];
|
||||
} ;
|
||||
|
||||
u8* m_pBannerFile;
|
||||
|
||||
bool m_IsValid;
|
||||
};
|
||||
|
||||
bool GetStringFromComments(const CommentIndex index, std::string& s);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue