From 36a97dd8a295d90cf9ec6c186ca7dc74a49d173d Mon Sep 17 00:00:00 2001 From: David Marcec Date: Sun, 22 Sep 2019 16:37:59 +1000 Subject: Rebase --- src/core/hle/service/prepo/prepo.cpp | 14 +++++++------- src/core/hle/service/prepo/prepo.h | 6 +++++- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'src/core/hle/service') diff --git a/src/core/hle/service/prepo/prepo.cpp b/src/core/hle/service/prepo/prepo.cpp index 0f79135ff..18d895263 100644 --- a/src/core/hle/service/prepo/prepo.cpp +++ b/src/core/hle/service/prepo/prepo.cpp @@ -15,7 +15,7 @@ namespace Service::PlayReport { class PlayReport final : public ServiceFramework { public: - explicit PlayReport(Core::System& system, const char* name) + explicit PlayReport(const char* name, Core::System& system) : ServiceFramework{name}, system(system) { // clang-format off static const FunctionInfo functions[] = { @@ -128,12 +128,12 @@ private: Core::System& system; }; -void InstallInterfaces(Core::System& system) { - std::make_shared(system, "prepo:a")->InstallAsService(system.ServiceManager()); - std::make_shared(system, "prepo:a2")->InstallAsService(system.ServiceManager()); - std::make_shared(system, "prepo:m")->InstallAsService(system.ServiceManager()); - std::make_shared(system, "prepo:s")->InstallAsService(system.ServiceManager()); - std::make_shared(system, "prepo:u")->InstallAsService(system.ServiceManager()); +void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) { + std::make_shared("prepo:a", system)->InstallAsService(service_manager); + std::make_shared("prepo:a2", system)->InstallAsService(service_manager); + std::make_shared("prepo:m", system)->InstallAsService(service_manager); + std::make_shared("prepo:s", system)->InstallAsService(service_manager); + std::make_shared("prepo:u", system)->InstallAsService(service_manager); } } // namespace Service::PlayReport diff --git a/src/core/hle/service/prepo/prepo.h b/src/core/hle/service/prepo/prepo.h index 0ebc3a938..a5682ee26 100644 --- a/src/core/hle/service/prepo/prepo.h +++ b/src/core/hle/service/prepo/prepo.h @@ -8,8 +8,12 @@ namespace Service::SM { class ServiceManager; } +namespace Core { +class System; +} + namespace Service::PlayReport { -void InstallInterfaces(Core::System& system); +void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system); } // namespace Service::PlayReport -- cgit v1.2.3