[Applet Manager] Fix resetting

This commit is contained in:
wheremyfoodat 2023-11-12 21:24:12 +02:00
parent aa40eaf4cc
commit 62af35c42b
2 changed files with 3 additions and 1 deletions

View file

@ -7,6 +7,8 @@ using namespace Applets;
AppletManager::AppletManager(Memory& mem) : miiSelector(mem, nextParameter), swkbd(mem, nextParameter) {}
void AppletManager::reset() {
nextParameter = std::nullopt;
miiSelector.reset();
swkbd.reset();
}

View file

@ -291,7 +291,7 @@ void APTService::glanceParameter(u32 messagePointer) {
// Sender App ID
mem.write32(messagePointer + 8, parameter.senderID);
// Command
mem.write32(messagePointer + 12, static_cast<u32>(parameter.signal));
mem.write32(messagePointer + 12, parameter.signal);
// Size of parameter data
mem.write32(messagePointer + 16, parameter.data.size());
mem.write32(messagePointer + 20, 0);