[APT] Properly forward parameters in SendParameter

This commit is contained in:
wheremyfoodat 2023-11-12 21:07:44 +02:00
parent 5df44e0c4f
commit bd1d7b7a81
7 changed files with 30 additions and 11 deletions

View file

@ -67,7 +67,7 @@ namespace Applets {
struct Parameter {
u32 senderID;
u32 destID;
APTSignal signal;
u32 signal;
std::vector<u8> data;
};
@ -82,7 +82,7 @@ namespace Applets {
// Called by APT::StartLibraryApplet and similar
virtual Result::HorizonResult start() = 0;
// Transfer parameters from application -> applet
virtual Result::HorizonResult receiveParameter() = 0;
virtual Result::HorizonResult receiveParameter(const Parameter& parameter) = 0;
virtual void reset() = 0;
AppletBase(Memory& mem, std::optional<Parameter>& nextParam) : mem(mem), nextParameter(nextParam) {}