2026-09-25 15:57:13

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie
2026-09-25 15:57:13 +00:00
parent 1f784d5541
commit 33a6f339a2
45 changed files with 770 additions and 1005 deletions
+15 -19
View File
@@ -14,15 +14,13 @@ namespace Service::MNPP {
class MNPP_APP final : public ServiceFramework<MNPP_APP> {
public:
explicit MNPP_APP(Core::System& system_) : ServiceFramework{system_, "mnpp:app"} {
// clang-format off
static const FunctionInfo functions[] = {
explicit MNPP_APP(Core::System& system_) : ServiceFramework{system_, "mnpp:app"} {}
FunctionInfoBase const* FindRequest(u32 key) override {
return HandlerTableGenerateWithFind(key,
FunctionInfo{0, &MNPP_APP::Cmd0, "Cmd0"},
FunctionInfo{1, &MNPP_APP::Cmd1, "Cmd1"}
};
// clang-format on
RegisterHandlers(functions);
);
}
private:
@@ -43,34 +41,32 @@ private:
class MNPP_SYS final : public ServiceFramework<MNPP_SYS> {
public:
explicit MNPP_SYS(Core::System& system_) : ServiceFramework{system_, "mnpp:sys"} {
// clang-format off
static const FunctionInfo functions[] = {
explicit MNPP_SYS(Core::System& system_) : ServiceFramework{system_, "mnpp:sys"} {}
FunctionInfoBase const* FindRequest(u32 key) override {
return HandlerTableGenerateWithFind(key,
FunctionInfo{0, nullptr, "Cmd0"},
FunctionInfo{10, nullptr, "Cmd10"},
FunctionInfo{100, nullptr, "Cmd100"},
FunctionInfo{200, nullptr, "Cmd200"},
FunctionInfo{300, nullptr, "Cmd300"},
FunctionInfo{400, nullptr, "Cmd400"}
};
// clang-format on
RegisterHandlers(functions);
);
}
};
class MNPP_WEB final : public ServiceFramework<MNPP_WEB> {
public:
explicit MNPP_WEB(Core::System& system_) : ServiceFramework{system_, "mnpp:web"} {
// clang-format off
static const FunctionInfo functions[] = {
explicit MNPP_WEB(Core::System& system_) : ServiceFramework{system_, "mnpp:web"} {}
FunctionInfoBase const* FindRequest(u32 key) override {
return HandlerTableGenerateWithFind(key,
FunctionInfo{0, nullptr, "Cmd0"},
FunctionInfo{1, nullptr, "Cmd1"},
FunctionInfo{10, nullptr, "Cmd10"},
FunctionInfo{20, nullptr, "Cmd20"},
FunctionInfo{100, nullptr, "Cmd100"}
};
// clang-format on
RegisterHandlers(functions);
);
}
};