mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 20:19:13 +12:00
Backup Noumi's Home Menu changes from her deleted repo
Co-Authored-By: Noumi <139501014+noumidev@users.noreply.github.com>
This commit is contained in:
parent
6be642a118
commit
38ef0dbe4c
32 changed files with 661 additions and 34 deletions
|
@ -5,18 +5,31 @@
|
|||
#include "memory.hpp"
|
||||
#include "result/result.hpp"
|
||||
|
||||
class Kernel;
|
||||
|
||||
class NIMService {
|
||||
using Handle = HorizonHandle;
|
||||
|
||||
Handle handle = KernelHandles::NIM;
|
||||
Memory& mem;
|
||||
Kernel& kernel;
|
||||
MAKE_LOG_FUNCTION(log, nimLogger)
|
||||
|
||||
std::optional<Handle> backgroundSystemUpdateEvent;
|
||||
|
||||
// Service commands
|
||||
void getAutoTitleDownloadTaskInfos(u32 messagePointer);
|
||||
void getBackgroundEventForMenu(u32 messagePointer);
|
||||
void getTaskInfos(u32 messagePointer);
|
||||
void initialize(u32 messagePointer);
|
||||
void isPendingAutoTitleDownloadTasks(u32 messagePointer);
|
||||
|
||||
public:
|
||||
NIMService(Memory& mem) : mem(mem) {}
|
||||
enum class Type {
|
||||
AOC, // nim:aoc
|
||||
U, // nim:u
|
||||
};
|
||||
|
||||
NIMService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {}
|
||||
void reset();
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
void handleSyncRequest(u32 messagePointer, Type type);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue