From 412fba079e9c02e3db00c302004cb3abd6f2ce44 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Fri, 4 Aug 2023 19:18:46 +0300 Subject: [PATCH] Add applet list --- include/applets/applet.hpp | 54 ++++++++++++++++++++++++++++++++------ 1 file changed, 46 insertions(+), 8 deletions(-) diff --git a/include/applets/applet.hpp b/include/applets/applet.hpp index 9f31f4e4..4be0868d 100644 --- a/include/applets/applet.hpp +++ b/include/applets/applet.hpp @@ -4,13 +4,51 @@ #include "memory.hpp" #include "result/result.hpp" -class AppletBase { - Memory& mem; +namespace Applets { + enum class AppletIDs : u32 { + None = 0, + SysAppletMask = 0x100, + HomeMenu = 0x101, + AltMenu = 0x103, + Camera = 0x110, + Friends = 0x112, + GameNotes = 0x113, + Browser = 0x114, + InstructionManual = 0x115, + Notifications = 0x116, + Miiverse = 0x117, + MiiversePosting = 0x118, + AmiiboSettings = 0x119, + SysLibraryAppletMask = 0x200, + SoftwareKeyboard = 0x201, + MiiSelector = 0x202, + PNote = 0x204, // TODO: What dis? + SNote = 0x205, // What is this too? + ErrDisp = 0x206, + EshopMint = 0x207, + CirclePadProCalib = 0x208, + Notepad = 0x209, + Application = 0x300, + EshopTiger = 0x301, + LibraryAppletMask = 0x400, + SoftwareKeyboard2 = 0x401, + MiiSelector2 = 0x402, + Pnote2 = 0x404, + SNote2 = 0x405, + ErrDisp2 = 0x406, + EshopMint2 = 0x407, + CirclePadProCalib2 = 0x408, + Notepad2 = 0x409, + }; - public: - // Called by APT::StartLibraryApplet and similar - virtual Result::HorizonResult start() = 0; - virtual void reset() = 0; + class AppletBase { + Memory& mem; - AppletBase(Memory& mem) : mem(mem) {} -}; \ No newline at end of file + public: + // Called by APT::StartLibraryApplet and similar + virtual Result::HorizonResult start() = 0; + virtual void reset() = 0; + + AppletBase(Memory& mem) : mem(mem) {} + }; +} // namespace Applets \ No newline at end of file