diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/file_sys/control_metadata.h | 2 | ||||
| -rw-r--r-- | src/core/loader/deconstructed_rom_directory.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/control_metadata.h b/src/core/file_sys/control_metadata.h index 9fc02612a..6582cc240 100644 --- a/src/core/file_sys/control_metadata.h +++ b/src/core/file_sys/control_metadata.h | |||
| @@ -62,7 +62,7 @@ enum class Language : u8 { | |||
| 62 | Chinese = 14, | 62 | Chinese = 14, |
| 63 | }; | 63 | }; |
| 64 | 64 | ||
| 65 | static std::array<std::string, 15> LANGUAGE_NAMES = { | 65 | static constexpr std::array<const char*, 15> LANGUAGE_NAMES = { |
| 66 | "AmericanEnglish", "BritishEnglish", "Japanese", | 66 | "AmericanEnglish", "BritishEnglish", "Japanese", |
| 67 | "French", "German", "LatinAmericanSpanish", | 67 | "French", "German", "LatinAmericanSpanish", |
| 68 | "Spanish", "Italian", "Dutch", | 68 | "Spanish", "Italian", "Dutch", |
diff --git a/src/core/loader/deconstructed_rom_directory.cpp b/src/core/loader/deconstructed_rom_directory.cpp index cc88a44b6..4a028250b 100644 --- a/src/core/loader/deconstructed_rom_directory.cpp +++ b/src/core/loader/deconstructed_rom_directory.cpp | |||
| @@ -25,7 +25,7 @@ AppLoader_DeconstructedRomDirectory::AppLoader_DeconstructedRomDirectory(FileSys | |||
| 25 | // Icon | 25 | // Icon |
| 26 | FileSys::VirtualFile icon_file = nullptr; | 26 | FileSys::VirtualFile icon_file = nullptr; |
| 27 | for (const auto& language : FileSys::LANGUAGE_NAMES) { | 27 | for (const auto& language : FileSys::LANGUAGE_NAMES) { |
| 28 | icon_file = dir->GetFile("icon_" + language + ".dat"); | 28 | icon_file = dir->GetFile("icon_" + std::string(language) + ".dat"); |
| 29 | if (icon_file != nullptr) { | 29 | if (icon_file != nullptr) { |
| 30 | icon_data = icon_file->ReadAllBytes(); | 30 | icon_data = icon_file->ReadAllBytes(); |
| 31 | break; | 31 | break; |