mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 06:05:40 +12:00
27 lines
No EOL
583 B
C++
27 lines
No EOL
583 B
C++
#pragma once
|
|
#include <optional>
|
|
#include "helpers.hpp"
|
|
#include "kernel_types.hpp"
|
|
#include "logger.hpp"
|
|
#include "memory.hpp"
|
|
#include "result/result.hpp"
|
|
|
|
class Kernel;
|
|
|
|
class CECDService {
|
|
Handle handle = KernelHandles::CECD;
|
|
Memory& mem;
|
|
Kernel& kernel;
|
|
MAKE_LOG_FUNCTION(log, cecdLogger)
|
|
|
|
std::optional<Handle> infoEvent;
|
|
|
|
// Service commands
|
|
void getInfoEventHandle(u32 messagePointer);
|
|
void openAndRead(u32 messagePointer);
|
|
|
|
public:
|
|
CECDService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {}
|
|
void reset();
|
|
void handleSyncRequest(u32 messagePointer);
|
|
}; |