Skip to content

Commit

Permalink
[Applet Manager] Fix resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat committed Nov 12, 2023
1 parent aa40eaf commit 62af35c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/core/applets/applet_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/services/apt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 62af35c

Please sign in to comment.