diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-05-28 05:13:39 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-05-28 05:45:56 +0200 |
commit | 247cd92216160dd020464d57a28aa3c1ce731095 (patch) | |
tree | 11ac756abd08444b023e9a4432fe81543459f2b3 /src/core/hle/service/am | |
parent | Merge pull request #6372 from bunnei/raster-cache-fix (diff) | |
download | yuzu-247cd92216160dd020464d57a28aa3c1ce731095.tar yuzu-247cd92216160dd020464d57a28aa3c1ce731095.tar.gz yuzu-247cd92216160dd020464d57a28aa3c1ce731095.tar.bz2 yuzu-247cd92216160dd020464d57a28aa3c1ce731095.tar.lz yuzu-247cd92216160dd020464d57a28aa3c1ce731095.tar.xz yuzu-247cd92216160dd020464d57a28aa3c1ce731095.tar.zst yuzu-247cd92216160dd020464d57a28aa3c1ce731095.zip |
Diffstat (limited to 'src/core/hle/service/am')
-rw-r--r-- | src/core/hle/service/am/applets/software_keyboard.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/hle/service/am/applets/software_keyboard.cpp b/src/core/hle/service/am/applets/software_keyboard.cpp index b05a5da04..a1027a9ad 100644 --- a/src/core/hle/service/am/applets/software_keyboard.cpp +++ b/src/core/hle/service/am/applets/software_keyboard.cpp @@ -273,8 +273,13 @@ void SoftwareKeyboard::ProcessTextCheck() { std::memcpy(&swkbd_text_check, text_check_data.data(), sizeof(SwkbdTextCheck)); - std::u16string text_check_message = Common::UTF16StringFromFixedZeroTerminatedBuffer( - swkbd_text_check.text_check_message.data(), swkbd_text_check.text_check_message.size()); + std::u16string text_check_message = + swkbd_text_check.text_check_result == SwkbdTextCheckResult::Failure || + swkbd_text_check.text_check_result == SwkbdTextCheckResult::Confirm + ? Common::UTF16StringFromFixedZeroTerminatedBuffer( + swkbd_text_check.text_check_message.data(), + swkbd_text_check.text_check_message.size()) + : u""; LOG_INFO(Service_AM, "\nTextCheckResult: {}\nTextCheckMessage: {}", GetTextCheckResultName(swkbd_text_check.text_check_result), |