mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
Volume: Add prefer_long parameter to GetNames
GC games with long names store two variations of the name in opening.bnr. This makes the shorter of those names available. For volumes other than GC discs, prefer_long is ignored.
This commit is contained in:
parent
881f6db2ab
commit
ec0370d2d1
12 changed files with 78 additions and 95 deletions
|
@ -29,7 +29,7 @@ public:
|
|||
std::string GetMakerID() const override;
|
||||
u16 GetRevision() const override;
|
||||
virtual std::string GetInternalName() const override;
|
||||
std::map<ELanguage, std::string> GetNames() const override;
|
||||
std::map<ELanguage, std::string> GetNames(bool prefer_long) const override;
|
||||
std::map<ELanguage, std::string> GetDescriptions() const override;
|
||||
std::string GetCompany() const override;
|
||||
std::vector<u32> GetBanner(int* width, int* height) const override;
|
||||
|
@ -44,6 +44,7 @@ public:
|
|||
|
||||
private:
|
||||
bool LoadBannerFile() const;
|
||||
std::map<ELanguage, std::string> ReadMultiLanguageStrings(bool description, bool prefer_long = true) const;
|
||||
|
||||
static const int GC_BANNER_WIDTH = 96;
|
||||
static const int GC_BANNER_HEIGHT = 32;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue