summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-20 01:02:04 +0200
committerLioncash <mathew1800@gmail.com>2018-09-20 01:02:06 +0200
commit3146502a12125a2511cfda1cd08924d71d378e10 (patch)
treec3208927a64a1cb553c107a5675017a8adfdd7c2 /src/core
parentcontrol_metadata: Move language name array definition to the cpp file (diff)
downloadyuzu-3146502a12125a2511cfda1cd08924d71d378e10.tar
yuzu-3146502a12125a2511cfda1cd08924d71d378e10.tar.gz
yuzu-3146502a12125a2511cfda1cd08924d71d378e10.tar.bz2
yuzu-3146502a12125a2511cfda1cd08924d71d378e10.tar.lz
yuzu-3146502a12125a2511cfda1cd08924d71d378e10.tar.xz
yuzu-3146502a12125a2511cfda1cd08924d71d378e10.tar.zst
yuzu-3146502a12125a2511cfda1cd08924d71d378e10.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/control_metadata.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/file_sys/control_metadata.cpp b/src/core/file_sys/control_metadata.cpp
index b47c95d11..f11b91399 100644
--- a/src/core/file_sys/control_metadata.cpp
+++ b/src/core/file_sys/control_metadata.cpp
@@ -31,15 +31,15 @@ NACP::NACP(VirtualFile file) : raw(std::make_unique<RawNACP>()) {
const LanguageEntry& NACP::GetLanguageEntry(Language language) const {
if (language != Language::Default) {
return raw->language_entries.at(static_cast<u8>(language));
- } else {
- for (const auto& language_entry : raw->language_entries) {
- if (!language_entry.GetApplicationName().empty())
- return language_entry;
- }
-
- // Fallback to English
- return GetLanguageEntry(Language::AmericanEnglish);
}
+
+ for (const auto& language_entry : raw->language_entries) {
+ if (!language_entry.GetApplicationName().empty())
+ return language_entry;
+ }
+
+ // Fallback to English
+ return GetLanguageEntry(Language::AmericanEnglish);
}
std::string NACP::GetApplicationName(Language language) const {