diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-11-19 22:30:17 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-11-19 22:30:17 +0100 |
commit | a9fa890f14afc84307884aa802b6255c906054d9 (patch) | |
tree | 3e02f95386bd6eb2cf8f3e9d55e017a9a569022e /src | |
parent | software_keyboard: Return correct result code on user cancel operation (diff) | |
download | yuzu-a9fa890f14afc84307884aa802b6255c906054d9.tar yuzu-a9fa890f14afc84307884aa802b6255c906054d9.tar.gz yuzu-a9fa890f14afc84307884aa802b6255c906054d9.tar.bz2 yuzu-a9fa890f14afc84307884aa802b6255c906054d9.tar.lz yuzu-a9fa890f14afc84307884aa802b6255c906054d9.tar.xz yuzu-a9fa890f14afc84307884aa802b6255c906054d9.tar.zst yuzu-a9fa890f14afc84307884aa802b6255c906054d9.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/am/applets/software_keyboard.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/service/am/applets/software_keyboard.cpp b/src/core/hle/service/am/applets/software_keyboard.cpp index aec6bf2a7..c4b76a515 100644 --- a/src/core/hle/service/am/applets/software_keyboard.cpp +++ b/src/core/hle/service/am/applets/software_keyboard.cpp @@ -127,7 +127,7 @@ void SoftwareKeyboard::WriteText(std::optional<std::u16string> text) { std::memcpy(output_sub.data() + 8, new_text.data(), std::min(new_text.size(), SWKBD_OUTPUT_BUFFER_SIZE - 8)); - output_main[0] = config.text_check; + output_main[0] = INTERACTIVE_STATUS_OK; std::memcpy(output_main.data() + 4, new_text.data(), std::min(new_text.size(), SWKBD_OUTPUT_BUFFER_SIZE - 4)); } else { @@ -136,7 +136,7 @@ void SoftwareKeyboard::WriteText(std::optional<std::u16string> text) { std::memcpy(output_sub.data() + 8, text->data(), std::min(text->size() * 2, SWKBD_OUTPUT_BUFFER_SIZE - 8)); - output_main[0] = config.text_check; + output_main[0] = INTERACTIVE_STATUS_OK; std::memcpy(output_main.data() + 4, text->data(), std::min(text->size() * 2, SWKBD_OUTPUT_BUFFER_SIZE - 4)); } @@ -147,7 +147,6 @@ void SoftwareKeyboard::WriteText(std::optional<std::u16string> text) { if (complete) { broker->PushNormalDataFromApplet(IStorage{output_main}); } else { - broker->PushNormalDataFromApplet(IStorage{output_main}); broker->PushInteractiveDataFromApplet(IStorage{output_sub}); } |