Read opening.bnr to get names from Wii discs

This makes Dolphin display the same names as the Disc Channel.
This commit is contained in:
JosJuice
2015-04-10 23:18:41 +02:00
parent 272f9d3cbc
commit 2d5d5fa83e
4 changed files with 38 additions and 36 deletions

View File

@ -113,6 +113,13 @@ protected:
else
return CP1252ToUTF8(string);
}
static std::map<IVolume::ELanguage, std::string> ReadWiiNames(std::vector<u8>& data);
static const size_t NUMBER_OF_LANGUAGES = 10;
static const size_t NAME_STRING_LENGTH = 42;
static const size_t NAME_BYTES_LENGTH = NAME_STRING_LENGTH * sizeof(u16);
static const size_t NAMES_TOTAL_BYTES = NAME_BYTES_LENGTH * NUMBER_OF_LANGUAGES;
};
// Generic Switch function for all volumes