|
|
@ -19,7 +19,7 @@ namespace HLE { |
|
|
namespace Applets { |
|
|
namespace Applets { |
|
|
|
|
|
|
|
|
ResultCode MiiSelector::ReceiveParameter(const Service::APT::MessageParameter& parameter) { |
|
|
ResultCode MiiSelector::ReceiveParameter(const Service::APT::MessageParameter& parameter) { |
|
|
if (parameter.signal != static_cast<u32>(Service::APT::SignalType::LibAppJustStarted)) { |
|
|
|
|
|
|
|
|
if (parameter.signal != static_cast<u32>(Service::APT::SignalType::Request)) { |
|
|
LOG_ERROR(Service_APT, "unsupported signal %u", parameter.signal); |
|
|
LOG_ERROR(Service_APT, "unsupported signal %u", parameter.signal); |
|
|
UNIMPLEMENTED(); |
|
|
UNIMPLEMENTED(); |
|
|
// TODO(Subv): Find the right error code
|
|
|
// TODO(Subv): Find the right error code
|
|
|
@ -44,7 +44,7 @@ ResultCode MiiSelector::ReceiveParameter(const Service::APT::MessageParameter& p |
|
|
|
|
|
|
|
|
// Send the response message with the newly created SharedMemory
|
|
|
// Send the response message with the newly created SharedMemory
|
|
|
Service::APT::MessageParameter result; |
|
|
Service::APT::MessageParameter result; |
|
|
result.signal = static_cast<u32>(Service::APT::SignalType::LibAppFinished); |
|
|
|
|
|
|
|
|
result.signal = static_cast<u32>(Service::APT::SignalType::Response); |
|
|
result.buffer.clear(); |
|
|
result.buffer.clear(); |
|
|
result.destination_id = static_cast<u32>(Service::APT::AppletId::Application); |
|
|
result.destination_id = static_cast<u32>(Service::APT::AppletId::Application); |
|
|
result.sender_id = static_cast<u32>(id); |
|
|
result.sender_id = static_cast<u32>(id); |
|
|
@ -73,7 +73,7 @@ ResultCode MiiSelector::StartImpl(const Service::APT::AppletStartupParameter& pa |
|
|
Service::APT::MessageParameter message; |
|
|
Service::APT::MessageParameter message; |
|
|
message.buffer.resize(sizeof(MiiResult)); |
|
|
message.buffer.resize(sizeof(MiiResult)); |
|
|
std::memcpy(message.buffer.data(), &result, message.buffer.size()); |
|
|
std::memcpy(message.buffer.data(), &result, message.buffer.size()); |
|
|
message.signal = static_cast<u32>(Service::APT::SignalType::LibAppClosed); |
|
|
|
|
|
|
|
|
message.signal = static_cast<u32>(Service::APT::SignalType::WakeupByExit); |
|
|
message.destination_id = static_cast<u32>(Service::APT::AppletId::Application); |
|
|
message.destination_id = static_cast<u32>(Service::APT::AppletId::Application); |
|
|
message.sender_id = static_cast<u32>(id); |
|
|
message.sender_id = static_cast<u32>(id); |
|
|
Service::APT::SendParameter(message); |
|
|
Service::APT::SendParameter(message); |
|
|
|