Panda3DS/include/services/am.hpp
wheremyfoodat 38ef0dbe4c Backup Noumi's Home Menu changes from her deleted repo
Co-Authored-By: Noumi <139501014+noumidev@users.noreply.github.com>
2024-12-09 22:05:38 +02:00

29 lines
No EOL
746 B
C++

#pragma once
#include "helpers.hpp"
#include "kernel_types.hpp"
#include "logger.hpp"
#include "memory.hpp"
#include "result/result.hpp"
class AMService {
using Handle = HorizonHandle;
Handle handle = KernelHandles::AM;
Memory& mem;
MAKE_LOG_FUNCTION(log, amLogger)
// Service commands
void checkContentRights(u32 messagePointer);
void getDLCTitleInfo(u32 messagePointer);
void getPatchTitleInfo(u32 messagePointer);
void getProgramInfos(u32 messagePointer);
void getProgramList(u32 messagePointer);
void getTicketList(u32 messagePointer);
void listTitleInfo(u32 messagePointer);
void needsCleanup(u32 messagePointer);
public:
AMService(Memory& mem) : mem(mem) {}
void reset();
void handleSyncRequest(u32 messagePointer);
};