Rename Handle to HorizonHandle, add metal-cpp submodule, format

This commit is contained in:
wheremyfoodat 2024-07-23 15:22:15 +03:00
parent 855a374f67
commit 0f80d0af7a
46 changed files with 150 additions and 60 deletions

View file

@ -6,7 +6,14 @@
#include "result/result.hpp"
class NDMService {
enum class ExclusiveState : u32 { None = 0, Infrastructure = 1, LocalComms = 2, StreetPass = 3, StreetPassData = 4 };
using Handle = HorizonHandle;
enum class ExclusiveState : u32 {
None = 0,
Infrastructure = 1,
LocalComms = 2,
StreetPass = 3,
StreetPassData = 4,
};
Handle handle = KernelHandles::NDM;
Memory& mem;
@ -25,7 +32,7 @@ class NDMService {
ExclusiveState exclusiveState = ExclusiveState::None;
public:
public:
NDMService(Memory& mem) : mem(mem) {}
void reset();
void handleSyncRequest(u32 messagePointer);