diff options
Diffstat (limited to 'src/core/hle/service/erpt')
| -rw-r--r-- | src/core/hle/service/erpt/erpt.cpp | 10 | ||||
| -rw-r--r-- | src/core/hle/service/erpt/erpt.h | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/core/hle/service/erpt/erpt.cpp b/src/core/hle/service/erpt/erpt.cpp index 4ec8c3093..4924c61c3 100644 --- a/src/core/hle/service/erpt/erpt.cpp +++ b/src/core/hle/service/erpt/erpt.cpp | |||
| @@ -12,7 +12,7 @@ namespace Service::ERPT { | |||
| 12 | 12 | ||
| 13 | class ErrorReportContext final : public ServiceFramework<ErrorReportContext> { | 13 | class ErrorReportContext final : public ServiceFramework<ErrorReportContext> { |
| 14 | public: | 14 | public: |
| 15 | explicit ErrorReportContext() : ServiceFramework{"erpt:c"} { | 15 | explicit ErrorReportContext(Core::System& system_) : ServiceFramework{system_, "erpt:c"} { |
| 16 | // clang-format off | 16 | // clang-format off |
| 17 | static const FunctionInfo functions[] = { | 17 | static const FunctionInfo functions[] = { |
| 18 | {0, nullptr, "SubmitContext"}, | 18 | {0, nullptr, "SubmitContext"}, |
| @@ -35,7 +35,7 @@ public: | |||
| 35 | 35 | ||
| 36 | class ErrorReportSession final : public ServiceFramework<ErrorReportSession> { | 36 | class ErrorReportSession final : public ServiceFramework<ErrorReportSession> { |
| 37 | public: | 37 | public: |
| 38 | explicit ErrorReportSession() : ServiceFramework{"erpt:r"} { | 38 | explicit ErrorReportSession(Core::System& system_) : ServiceFramework{system_, "erpt:r"} { |
| 39 | // clang-format off | 39 | // clang-format off |
| 40 | static const FunctionInfo functions[] = { | 40 | static const FunctionInfo functions[] = { |
| 41 | {0, nullptr, "OpenReport"}, | 41 | {0, nullptr, "OpenReport"}, |
| @@ -48,9 +48,9 @@ public: | |||
| 48 | } | 48 | } |
| 49 | }; | 49 | }; |
| 50 | 50 | ||
| 51 | void InstallInterfaces(SM::ServiceManager& sm) { | 51 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) { |
| 52 | std::make_shared<ErrorReportContext>()->InstallAsService(sm); | 52 | std::make_shared<ErrorReportContext>(system)->InstallAsService(sm); |
| 53 | std::make_shared<ErrorReportSession>()->InstallAsService(sm); | 53 | std::make_shared<ErrorReportSession>(system)->InstallAsService(sm); |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | } // namespace Service::ERPT | 56 | } // namespace Service::ERPT |
diff --git a/src/core/hle/service/erpt/erpt.h b/src/core/hle/service/erpt/erpt.h index de439ab6d..8cd5c081f 100644 --- a/src/core/hle/service/erpt/erpt.h +++ b/src/core/hle/service/erpt/erpt.h | |||
| @@ -4,6 +4,10 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | namespace Core { | ||
| 8 | class System; | ||
| 9 | } | ||
| 10 | |||
| 7 | namespace Service::SM { | 11 | namespace Service::SM { |
| 8 | class ServiceManager; | 12 | class ServiceManager; |
| 9 | } | 13 | } |
| @@ -11,6 +15,6 @@ class ServiceManager; | |||
| 11 | namespace Service::ERPT { | 15 | namespace Service::ERPT { |
| 12 | 16 | ||
| 13 | /// Registers all ERPT services with the specified service manager. | 17 | /// Registers all ERPT services with the specified service manager. |
| 14 | void InstallInterfaces(SM::ServiceManager& sm); | 18 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system); |
| 15 | 19 | ||
| 16 | } // namespace Service::ERPT | 20 | } // namespace Service::ERPT |