summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ns
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-04-29 03:15:21 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2020-04-29 03:15:21 +0200
commitb4dbf1b9c7a69ee7ba9682fe0d6c8377f0512a34 (patch)
tree93daa1ff710211388755f1dbf06a06dbd3d3cce6 /src/core/hle/service/ns
parentMerge pull request #3784 from ReinUsesLisp/shader-memory-util (diff)
downloadyuzu-b4dbf1b9c7a69ee7ba9682fe0d6c8377f0512a34.tar
yuzu-b4dbf1b9c7a69ee7ba9682fe0d6c8377f0512a34.tar.gz
yuzu-b4dbf1b9c7a69ee7ba9682fe0d6c8377f0512a34.tar.bz2
yuzu-b4dbf1b9c7a69ee7ba9682fe0d6c8377f0512a34.tar.lz
yuzu-b4dbf1b9c7a69ee7ba9682fe0d6c8377f0512a34.tar.xz
yuzu-b4dbf1b9c7a69ee7ba9682fe0d6c8377f0512a34.tar.zst
yuzu-b4dbf1b9c7a69ee7ba9682fe0d6c8377f0512a34.zip
Diffstat (limited to 'src/core/hle/service/ns')
-rw-r--r--src/core/hle/service/ns/ns.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/service/ns/ns.cpp b/src/core/hle/service/ns/ns.cpp
index 8fb88990e..7e5ceccdb 100644
--- a/src/core/hle/service/ns/ns.cpp
+++ b/src/core/hle/service/ns/ns.cpp
@@ -371,10 +371,15 @@ ResultVal<u8> IApplicationManagerInterface::GetApplicationDesiredLanguage(
// Convert to application language, get priority list
const auto application_language = ConvertToApplicationLanguage(language_code);
if (application_language == std::nullopt) {
+ LOG_ERROR(Service_NS, "Could not convert application language! language_code={}",
+ language_code);
return ERR_APPLICATION_LANGUAGE_NOT_FOUND;
}
const auto priority_list = GetApplicationLanguagePriorityList(*application_language);
if (!priority_list) {
+ LOG_ERROR(Service_NS,
+ "Could not find application language priorities! application_language={}",
+ *application_language);
return ERR_APPLICATION_LANGUAGE_NOT_FOUND;
}
@@ -386,6 +391,8 @@ ResultVal<u8> IApplicationManagerInterface::GetApplicationDesiredLanguage(
}
}
+ LOG_ERROR(Service_NS, "Could not find a valid language! supported_languages={:08X}",
+ supported_languages);
return ERR_APPLICATION_LANGUAGE_NOT_FOUND;
}
@@ -410,6 +417,7 @@ ResultVal<u64> IApplicationManagerInterface::ConvertApplicationLanguageToLanguag
const auto language_code =
ConvertToLanguageCode(static_cast<ApplicationLanguage>(application_language));
if (language_code == std::nullopt) {
+ LOG_ERROR(Service_NS, "Language not found! application_language={}", application_language);
return ERR_APPLICATION_LANGUAGE_NOT_FOUND;
}