mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
[APT] Properly forward parameters in SendParameter
This commit is contained in:
parent
5df44e0c4f
commit
bd1d7b7a81
7 changed files with 30 additions and 11 deletions
|
@ -28,7 +28,7 @@ Applets::Parameter AppletManager::glanceParameter() {
|
|||
// Copy parameter
|
||||
Applets::Parameter param = nextParameter.value();
|
||||
// APT module clears next parameter even for GlanceParameter for these 2 signals
|
||||
if (param.signal == APTSignal::DspWakeup || param.signal == APTSignal::DspSleep) {
|
||||
if (param.signal == static_cast<u32>(APTSignal::DspWakeup) || param.signal == static_cast<u32>(APTSignal::DspSleep)) {
|
||||
nextParameter = std::nullopt;
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,12 @@ Applets::Parameter AppletManager::glanceParameter() {
|
|||
|
||||
// Default return value. This is legacy code from before applets were implemented. TODO: Update it
|
||||
else {
|
||||
return Applets::Parameter{.senderID = 0, .destID = Applets::AppletIDs::Application, .signal = APTSignal::Wakeup, .data = {}};
|
||||
return Applets::Parameter{
|
||||
.senderID = 0,
|
||||
.destID = Applets::AppletIDs::Application,
|
||||
.signal = static_cast<u32>(APTSignal::Wakeup),
|
||||
.data = {},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using namespace Applets;
|
|||
void MiiSelectorApplet::reset() {}
|
||||
Result::HorizonResult MiiSelectorApplet::start() { return Result::Success; }
|
||||
|
||||
Result::HorizonResult MiiSelectorApplet::receiveParameter() {
|
||||
Result::HorizonResult MiiSelectorApplet::receiveParameter(const Applets::Parameter& parameter) {
|
||||
Helpers::warn("Mii Selector: Unimplemented ReceiveParameter");
|
||||
return Result::Success;
|
||||
}
|
|
@ -5,13 +5,13 @@ using namespace Applets;
|
|||
void SoftwareKeyboardApplet::reset() {}
|
||||
Result::HorizonResult SoftwareKeyboardApplet::start() { return Result::Success; }
|
||||
|
||||
Result::HorizonResult SoftwareKeyboardApplet::receiveParameter() {
|
||||
Result::HorizonResult SoftwareKeyboardApplet::receiveParameter(const Applets::Parameter& parameter) {
|
||||
Helpers::warn("Software keyboard: Unimplemented ReceiveParameter");
|
||||
|
||||
Applets::Parameter param = Applets::Parameter{
|
||||
.senderID = AppletIDs::SoftwareKeyboard,
|
||||
.senderID = parameter.destID,
|
||||
.destID = AppletIDs::Application,
|
||||
.signal = APTSignal::Response,
|
||||
.signal = static_cast<u32>(APTSignal::Response),
|
||||
.data = {},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue