diff options
Diffstat (limited to 'src/core/hle/applets/swkbd.cpp')
| -rw-r--r-- | src/core/hle/applets/swkbd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/applets/swkbd.cpp b/src/core/hle/applets/swkbd.cpp index 06ddf538b..1e21337f5 100644 --- a/src/core/hle/applets/swkbd.cpp +++ b/src/core/hle/applets/swkbd.cpp | |||
| @@ -22,7 +22,7 @@ namespace HLE { | |||
| 22 | namespace Applets { | 22 | namespace Applets { |
| 23 | 23 | ||
| 24 | ResultCode SoftwareKeyboard::ReceiveParameter(Service::APT::MessageParameter const& parameter) { | 24 | ResultCode SoftwareKeyboard::ReceiveParameter(Service::APT::MessageParameter const& parameter) { |
| 25 | if (parameter.signal != static_cast<u32>(Service::APT::SignalType::LibAppJustStarted)) { | 25 | if (parameter.signal != static_cast<u32>(Service::APT::SignalType::Request)) { |
| 26 | LOG_ERROR(Service_APT, "unsupported signal %u", parameter.signal); | 26 | LOG_ERROR(Service_APT, "unsupported signal %u", parameter.signal); |
| 27 | UNIMPLEMENTED(); | 27 | UNIMPLEMENTED(); |
| 28 | // TODO(Subv): Find the right error code | 28 | // TODO(Subv): Find the right error code |
| @@ -47,7 +47,7 @@ ResultCode SoftwareKeyboard::ReceiveParameter(Service::APT::MessageParameter con | |||
| 47 | 47 | ||
| 48 | // Send the response message with the newly created SharedMemory | 48 | // Send the response message with the newly created SharedMemory |
| 49 | Service::APT::MessageParameter result; | 49 | Service::APT::MessageParameter result; |
| 50 | result.signal = static_cast<u32>(Service::APT::SignalType::LibAppFinished); | 50 | result.signal = static_cast<u32>(Service::APT::SignalType::Response); |
| 51 | result.buffer.clear(); | 51 | result.buffer.clear(); |
| 52 | result.destination_id = static_cast<u32>(Service::APT::AppletId::Application); | 52 | result.destination_id = static_cast<u32>(Service::APT::AppletId::Application); |
| 53 | result.sender_id = static_cast<u32>(id); | 53 | result.sender_id = static_cast<u32>(id); |
| @@ -108,7 +108,7 @@ void SoftwareKeyboard::Finalize() { | |||
| 108 | Service::APT::MessageParameter message; | 108 | Service::APT::MessageParameter message; |
| 109 | message.buffer.resize(sizeof(SoftwareKeyboardConfig)); | 109 | message.buffer.resize(sizeof(SoftwareKeyboardConfig)); |
| 110 | std::memcpy(message.buffer.data(), &config, message.buffer.size()); | 110 | std::memcpy(message.buffer.data(), &config, message.buffer.size()); |
| 111 | message.signal = static_cast<u32>(Service::APT::SignalType::LibAppClosed); | 111 | message.signal = static_cast<u32>(Service::APT::SignalType::WakeupByExit); |
| 112 | message.destination_id = static_cast<u32>(Service::APT::AppletId::Application); | 112 | message.destination_id = static_cast<u32>(Service::APT::AppletId::Application); |
| 113 | message.sender_id = static_cast<u32>(id); | 113 | message.sender_id = static_cast<u32>(id); |
| 114 | Service::APT::SendParameter(message); | 114 | Service::APT::SendParameter(message); |