From b3443623f55e94184754abd1dc027f65fe14e785 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Wed, 23 Aug 2023 18:44:01 +0300 Subject: [PATCH] Add more applet types --- include/applets/applet.hpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/include/applets/applet.hpp b/include/applets/applet.hpp index a424e79d..0c3ab519 100644 --- a/include/applets/applet.hpp +++ b/include/applets/applet.hpp @@ -43,6 +43,34 @@ namespace Applets { }; } + enum class APTSignal : u32 { + None = 0x0, + Wakeup = 0x1, + Request = 0x2, + Response = 0x3, + Exit = 0x4, + Message = 0x5, + HomeButtonSingle = 0x6, + HomeButtonDouble = 0x7, + DspSleep = 0x8, + DspWakeup = 0x9, + WakeupByExit = 0xA, + WakeupByPause = 0xB, + WakeupByCancel = 0xC, + WakeupByCancelAll = 0xD, + WakeupByPowerButtonClick = 0xE, + WakeupToJumpHome = 0xF, + RequestForSysApplet = 0x10, + WakeupToLaunchApplication = 0x11, + }; + + struct Parameter { + u32 senderID; + u32 destID; + APTSignal signal; + std::vector data; + }; + class AppletBase { Memory& mem;