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
+10 -14
View File
@@ -17,9 +17,10 @@ namespace Service::ERPT {
class ErrorReportContext final : public ServiceFramework<ErrorReportContext> {
public:
explicit ErrorReportContext(Core::System& system_) : ServiceFramework{system_, "erpt:c"} {
// clang-format off
static const FunctionInfo functions[] = {
explicit ErrorReportContext(Core::System& system_) : ServiceFramework{system_, "erpt:c"} {}
FunctionInfoBase const* FindRequest(u32 key) override {
return HandlerTableGenerateWithFind(key,
FunctionInfo{0, C<&ErrorReportContext::SubmitContext>, "SubmitContext"},
FunctionInfo{1, C<&ErrorReportContext::CreateReportV0>, "CreateReportV0"},
FunctionInfo{2, nullptr, "SetInitialLaunchSettingsCompletionTime"},
@@ -37,10 +38,7 @@ public:
FunctionInfo{21, nullptr, "UnregisterRunningApplet"},
FunctionInfo{22, nullptr, "UpdateAppletSuspendedDuration"},
FunctionInfo{30, nullptr, "InvalidateForcedShutdownDetection"}
};
// clang-format on
RegisterHandlers(functions);
);
}
private:
@@ -89,16 +87,14 @@ private:
class ErrorReportSession final : public ServiceFramework<ErrorReportSession> {
public:
explicit ErrorReportSession(Core::System& system_) : ServiceFramework{system_, "erpt:r"} {
// clang-format off
static const FunctionInfo functions[] = {
explicit ErrorReportSession(Core::System& system_) : ServiceFramework{system_, "erpt:r"} {}
FunctionInfoBase const* FindRequest(u32 key) override {
return HandlerTableGenerateWithFind(key,
FunctionInfo{0, nullptr, "OpenReport"},
FunctionInfo{1, nullptr, "OpenManager"},
FunctionInfo{2, nullptr, "OpenAttachment"}
};
// clang-format on
RegisterHandlers(functions);
);
}
};