diff options
| author | 2016-11-19 20:30:26 -0500 | |
|---|---|---|
| committer | 2016-11-19 20:30:26 -0500 | |
| commit | 6c8857d2bb34059c6306e92a4daa4a619266c30a (patch) | |
| tree | a78815f668f98aae05cb01e8f909edcc810176ab /src/core/hle/applets/erreula.cpp | |
| parent | Merge pull request #2194 from jroweboy/extremely-minor-clangformat-change (diff) | |
| parent | APT/Applets: Renamed the members of the SignalType enum. (diff) | |
| download | yuzu-6c8857d2bb34059c6306e92a4daa4a619266c30a.tar.gz yuzu-6c8857d2bb34059c6306e92a4daa4a619266c30a.tar.xz yuzu-6c8857d2bb34059c6306e92a4daa4a619266c30a.zip | |
Merge pull request #2192 from Subv/applet_enums
APT/Applets: Renamed the members of the SignalType enum.
Diffstat (limited to 'src/core/hle/applets/erreula.cpp')
| -rw-r--r-- | src/core/hle/applets/erreula.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/applets/erreula.cpp b/src/core/hle/applets/erreula.cpp index 14964427b..e1379ac4d 100644 --- a/src/core/hle/applets/erreula.cpp +++ b/src/core/hle/applets/erreula.cpp | |||
| @@ -10,7 +10,7 @@ namespace HLE { | |||
| 10 | namespace Applets { | 10 | namespace Applets { |
| 11 | 11 | ||
| 12 | ResultCode ErrEula::ReceiveParameter(const Service::APT::MessageParameter& parameter) { | 12 | ResultCode ErrEula::ReceiveParameter(const Service::APT::MessageParameter& parameter) { |
| 13 | if (parameter.signal != static_cast<u32>(Service::APT::SignalType::LibAppJustStarted)) { | 13 | if (parameter.signal != static_cast<u32>(Service::APT::SignalType::Request)) { |
| 14 | LOG_ERROR(Service_APT, "unsupported signal %u", parameter.signal); | 14 | LOG_ERROR(Service_APT, "unsupported signal %u", parameter.signal); |
| 15 | UNIMPLEMENTED(); | 15 | UNIMPLEMENTED(); |
| 16 | // TODO(Subv): Find the right error code | 16 | // TODO(Subv): Find the right error code |
| @@ -36,7 +36,7 @@ ResultCode ErrEula::ReceiveParameter(const Service::APT::MessageParameter& param | |||
| 36 | 36 | ||
| 37 | // Send the response message with the newly created SharedMemory | 37 | // Send the response message with the newly created SharedMemory |
| 38 | Service::APT::MessageParameter result; | 38 | Service::APT::MessageParameter result; |
| 39 | result.signal = static_cast<u32>(Service::APT::SignalType::LibAppFinished); | 39 | result.signal = static_cast<u32>(Service::APT::SignalType::Response); |
| 40 | result.buffer.clear(); | 40 | result.buffer.clear(); |
| 41 | result.destination_id = static_cast<u32>(Service::APT::AppletId::Application); | 41 | result.destination_id = static_cast<u32>(Service::APT::AppletId::Application); |
| 42 | result.sender_id = static_cast<u32>(id); | 42 | result.sender_id = static_cast<u32>(id); |
| @@ -57,7 +57,7 @@ ResultCode ErrEula::StartImpl(const Service::APT::AppletStartupParameter& parame | |||
| 57 | Service::APT::MessageParameter message; | 57 | Service::APT::MessageParameter message; |
| 58 | message.buffer.resize(parameter.buffer.size()); | 58 | message.buffer.resize(parameter.buffer.size()); |
| 59 | std::fill(message.buffer.begin(), message.buffer.end(), 0); | 59 | std::fill(message.buffer.begin(), message.buffer.end(), 0); |
| 60 | message.signal = static_cast<u32>(Service::APT::SignalType::LibAppClosed); | 60 | message.signal = static_cast<u32>(Service::APT::SignalType::WakeupByExit); |
| 61 | message.destination_id = static_cast<u32>(Service::APT::AppletId::Application); | 61 | message.destination_id = static_cast<u32>(Service::APT::AppletId::Application); |
| 62 | message.sender_id = static_cast<u32>(id); | 62 | message.sender_id = static_cast<u32>(id); |
| 63 | Service::APT::SendParameter(message); | 63 | Service::APT::SendParameter(message); |