mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55: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.
22 lines
No EOL
508 B
C++
22 lines
No EOL
508 B
C++
#pragma once
|
|
#include "helpers.hpp"
|
|
#include "kernel_types.hpp"
|
|
#include "logger.hpp"
|
|
#include "memory.hpp"
|
|
#include "result/result.hpp"
|
|
|
|
class PTMService {
|
|
Handle handle = KernelHandles::PTM;
|
|
Memory& mem;
|
|
MAKE_LOG_FUNCTION(log, ptmLogger)
|
|
|
|
// Service commands
|
|
void configureNew3DSCPU(u32 messagePointer);
|
|
void getStepHistory(u32 messagePointer);
|
|
void getTotalStepCount(u32 messagePointer);
|
|
|
|
public:
|
|
PTMService(Memory& mem) : mem(mem) {}
|
|
void reset();
|
|
void handleSyncRequest(u32 messagePointer);
|
|
}; |