mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 07:05:40 +12:00
This should clean up all HLE errorcode in the codebase. I didn't removed Rust::Result as this should be a cleanup for another iteration.
26 lines
No EOL
544 B
C++
26 lines
No EOL
544 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);
|
|
|
|
public:
|
|
CECDService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {}
|
|
void reset();
|
|
void handleSyncRequest(u32 messagePointer);
|
|
}; |