DolphinWX: Support banners in Homebrew Channel format

HBC uses files named icon.png for icons. This change makes Dolphin
support that file name, and also [executable file name].png
in case someone wants to have multiple files in one folder.

The HBC banner support is mainly intended for DOL and ELF files,
but it can also be used to override banners of disc images,
something that wasn't possible in the past.

There are currently issues with banner scaling not preserving
the aspect ratio and looking bad in general.
This commit is contained in:
JosJuice
2015-09-04 19:08:30 +02:00
parent ad978122d9
commit 41315b19f1
2 changed files with 55 additions and 19 deletions

View File

@ -84,5 +84,10 @@ private:
std::string CreateCacheFilename();
void ReadBanner(const DiscIO::IVolume& volume);
// Outputs to m_pImage
void ReadVolumeBanner(const DiscIO::IVolume& volume);
// Outputs to m_Bitmap
bool ReadPNGBanner(const std::string& path);
static wxBitmap ScaleBanner(wxImage* image);
};