diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-11-17 18:18:03 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-11-18 16:53:47 +0100 |
commit | 19b2571aecfff680c7a414c505eafc26264b6f2f (patch) | |
tree | 1f9725a2acbf98647f981496aaf758de1a5008ca /src/core/frontend | |
parent | software_keyboard: Push buffer size to offset 0x4 in output data (diff) | |
download | yuzu-19b2571aecfff680c7a414c505eafc26264b6f2f.tar yuzu-19b2571aecfff680c7a414c505eafc26264b6f2f.tar.gz yuzu-19b2571aecfff680c7a414c505eafc26264b6f2f.tar.bz2 yuzu-19b2571aecfff680c7a414c505eafc26264b6f2f.tar.lz yuzu-19b2571aecfff680c7a414c505eafc26264b6f2f.tar.xz yuzu-19b2571aecfff680c7a414c505eafc26264b6f2f.tar.zst yuzu-19b2571aecfff680c7a414c505eafc26264b6f2f.zip |
Diffstat (limited to 'src/core/frontend')
-rw-r--r-- | src/core/frontend/applets/software_keyboard.cpp | 4 | ||||
-rw-r--r-- | src/core/frontend/applets/software_keyboard.h | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/core/frontend/applets/software_keyboard.cpp b/src/core/frontend/applets/software_keyboard.cpp index 4105101b3..856ed33da 100644 --- a/src/core/frontend/applets/software_keyboard.cpp +++ b/src/core/frontend/applets/software_keyboard.cpp @@ -18,10 +18,12 @@ void DefaultSoftwareKeyboardApplet::RequestText( out(parameters.initial_text); } -void DefaultSoftwareKeyboardApplet::SendTextCheckDialog(std::u16string error_message) const { +void DefaultSoftwareKeyboardApplet::SendTextCheckDialog( + std::u16string error_message, std::function<void()> finished_check) const { LOG_WARNING(Service_AM, "(STUBBED) called - Default fallback software keyboard does not support text " "check! (error_message={})", Common::UTF16ToUTF8(error_message)); + finished_check(); } } // namespace Core::Frontend diff --git a/src/core/frontend/applets/software_keyboard.h b/src/core/frontend/applets/software_keyboard.h index 5420ea883..f9b202664 100644 --- a/src/core/frontend/applets/software_keyboard.h +++ b/src/core/frontend/applets/software_keyboard.h @@ -39,14 +39,16 @@ public: virtual void RequestText(std::function<void(std::optional<std::u16string>)> out, SoftwareKeyboardParameters parameters) const = 0; - virtual void SendTextCheckDialog(std::u16string error_message) const = 0; + virtual void SendTextCheckDialog(std::u16string error_message, + std::function<void()> finished_check) const = 0; }; class DefaultSoftwareKeyboardApplet final : public SoftwareKeyboardApplet { public: void RequestText(std::function<void(std::optional<std::u16string>)> out, SoftwareKeyboardParameters parameters) const override; - void SendTextCheckDialog(std::u16string error_message) const override; + void SendTextCheckDialog(std::u16string error_message, + std::function<void()> finished_check) const override; }; } // namespace Core::Frontend |