mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Reimplement custom PNG banners in game list
Fixes https://bugs.dolphin-emu.org/issues/10938 and makes PNG banners available in DolphinQt2 for the first time.
This commit is contained in:
@ -42,7 +42,7 @@ public:
|
||||
std::map<Language, std::string> GetShortMakers() const override;
|
||||
std::map<Language, std::string> GetLongMakers() const override;
|
||||
std::map<Language, std::string> GetDescriptions() const override;
|
||||
std::vector<u32> GetBanner(int* width, int* height) const override;
|
||||
std::vector<u32> GetBanner(u32* width, u32* height) const override;
|
||||
std::string GetApploaderDate(const Partition& partition = PARTITION_NONE) const override;
|
||||
std::optional<u8> GetDiscNumber(const Partition& partition = PARTITION_NONE) const override;
|
||||
|
||||
@ -54,8 +54,8 @@ public:
|
||||
u64 GetRawSize() const override;
|
||||
|
||||
private:
|
||||
static const int GC_BANNER_WIDTH = 96;
|
||||
static const int GC_BANNER_HEIGHT = 32;
|
||||
static const u32 GC_BANNER_WIDTH = 96;
|
||||
static const u32 GC_BANNER_HEIGHT = 32;
|
||||
|
||||
struct GCBannerInformation
|
||||
{
|
||||
@ -89,8 +89,8 @@ private:
|
||||
std::map<Language, std::string> descriptions;
|
||||
|
||||
std::vector<u32> image_buffer;
|
||||
int image_height = 0;
|
||||
int image_width = 0;
|
||||
u32 image_height = 0;
|
||||
u32 image_width = 0;
|
||||
};
|
||||
|
||||
ConvertedGCBanner LoadBannerFile() const;
|
||||
|
Reference in New Issue
Block a user