diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-06-29 04:44:30 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-06-29 04:44:30 +0200 |
commit | 9175b00e7dba90e05ad2d9ae2a81644791da5998 (patch) | |
tree | 86bb9fd46055e53e7a5854a6f688be2b462032b5 /src/core/hle/service/apm/apm.cpp | |
parent | apm: Add Controller class to manage speed data and application (diff) | |
download | yuzu-9175b00e7dba90e05ad2d9ae2a81644791da5998.tar yuzu-9175b00e7dba90e05ad2d9ae2a81644791da5998.tar.gz yuzu-9175b00e7dba90e05ad2d9ae2a81644791da5998.tar.bz2 yuzu-9175b00e7dba90e05ad2d9ae2a81644791da5998.tar.lz yuzu-9175b00e7dba90e05ad2d9ae2a81644791da5998.tar.xz yuzu-9175b00e7dba90e05ad2d9ae2a81644791da5998.tar.zst yuzu-9175b00e7dba90e05ad2d9ae2a81644791da5998.zip |
Diffstat (limited to 'src/core/hle/service/apm/apm.cpp')
-rw-r--r-- | src/core/hle/service/apm/apm.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/core/hle/service/apm/apm.cpp b/src/core/hle/service/apm/apm.cpp index f3c09bbb1..85bbf5988 100644 --- a/src/core/hle/service/apm/apm.cpp +++ b/src/core/hle/service/apm/apm.cpp @@ -2,7 +2,6 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. -#include "common/logging/log.h" #include "core/hle/ipc_helpers.h" #include "core/hle/service/apm/apm.h" #include "core/hle/service/apm/interface.h" @@ -12,11 +11,15 @@ namespace Service::APM { Module::Module() = default; Module::~Module() = default; -void InstallInterfaces(SM::ServiceManager& service_manager) { +void InstallInterfaces(Core::System& system) { auto module_ = std::make_shared<Module>(); - std::make_shared<APM>(module_, "apm")->InstallAsService(service_manager); - std::make_shared<APM>(module_, "apm:p")->InstallAsService(service_manager); - std::make_shared<APM_Sys>()->InstallAsService(service_manager); + std::make_shared<APM>(module_, system.GetAPMController(), "apm") + ->InstallAsService(system.ServiceManager()); + std::make_shared<APM>(module_, system.GetAPMController(), "apm:p") + ->InstallAsService(system.ServiceManager()); + std::make_shared<APM>(module_, system.GetAPMController(), "apm:am") + ->InstallAsService(system.ServiceManager()); + std::make_shared<APM_Sys>(system.GetAPMController())->InstallAsService(system.ServiceManager()); } } // namespace Service::APM |