mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 07:49:19 +01:00
Merge pull request #2483 from JosJuice/readwiinames-const
Volume: Mark ReadWiiNames parameter as const
This commit is contained in:
commit
ff29ffeb66
@ -114,7 +114,7 @@ protected:
|
|||||||
return CP1252ToUTF8(string);
|
return CP1252ToUTF8(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::map<IVolume::ELanguage, std::string> ReadWiiNames(std::vector<u8>& data);
|
static std::map<IVolume::ELanguage, std::string> ReadWiiNames(const std::vector<u8>& data);
|
||||||
|
|
||||||
static const size_t NUMBER_OF_LANGUAGES = 10;
|
static const size_t NUMBER_OF_LANGUAGES = 10;
|
||||||
static const size_t NAME_STRING_LENGTH = 42;
|
static const size_t NAME_STRING_LENGTH = 42;
|
||||||
|
@ -57,7 +57,7 @@ std::vector<u32> IVolume::GetBanner(int* width, int* height) const
|
|||||||
return image_buffer;
|
return image_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::map<IVolume::ELanguage, std::string> IVolume::ReadWiiNames(std::vector<u8>& data)
|
std::map<IVolume::ELanguage, std::string> IVolume::ReadWiiNames(const std::vector<u8>& data)
|
||||||
{
|
{
|
||||||
std::map<IVolume::ELanguage, std::string> names;
|
std::map<IVolume::ELanguage, std::string> names;
|
||||||
for (size_t i = 0; i < NUMBER_OF_LANGUAGES; ++i)
|
for (size_t i = 0; i < NUMBER_OF_LANGUAGES; ++i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user