summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Zach Hilman2019-06-28 22:44:30 -0400
committerGravatar Zach Hilman2019-06-28 22:44:30 -0400
commit9175b00e7dba90e05ad2d9ae2a81644791da5998 (patch)
tree86bb9fd46055e53e7a5854a6f688be2b462032b5 /src
parentapm: Add Controller class to manage speed data and application (diff)
downloadyuzu-9175b00e7dba90e05ad2d9ae2a81644791da5998.tar.gz
yuzu-9175b00e7dba90e05ad2d9ae2a81644791da5998.tar.xz
yuzu-9175b00e7dba90e05ad2d9ae2a81644791da5998.zip
apm: Add apm:am service
8.0.0+ identical version of apm
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/apm/apm.cpp13
-rw-r--r--src/core/hle/service/apm/apm.h7
2 files changed, 9 insertions, 11 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 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/logging/log.h"
6#include "core/hle/ipc_helpers.h" 5#include "core/hle/ipc_helpers.h"
7#include "core/hle/service/apm/apm.h" 6#include "core/hle/service/apm/apm.h"
8#include "core/hle/service/apm/interface.h" 7#include "core/hle/service/apm/interface.h"
@@ -12,11 +11,15 @@ namespace Service::APM {
12Module::Module() = default; 11Module::Module() = default;
13Module::~Module() = default; 12Module::~Module() = default;
14 13
15void InstallInterfaces(SM::ServiceManager& service_manager) { 14void InstallInterfaces(Core::System& system) {
16 auto module_ = std::make_shared<Module>(); 15 auto module_ = std::make_shared<Module>();
17 std::make_shared<APM>(module_, "apm")->InstallAsService(service_manager); 16 std::make_shared<APM>(module_, system.GetAPMController(), "apm")
18 std::make_shared<APM>(module_, "apm:p")->InstallAsService(service_manager); 17 ->InstallAsService(system.ServiceManager());
19 std::make_shared<APM_Sys>()->InstallAsService(service_manager); 18 std::make_shared<APM>(module_, system.GetAPMController(), "apm:p")
19 ->InstallAsService(system.ServiceManager());
20 std::make_shared<APM>(module_, system.GetAPMController(), "apm:am")
21 ->InstallAsService(system.ServiceManager());
22 std::make_shared<APM_Sys>(system.GetAPMController())->InstallAsService(system.ServiceManager());
20} 23}
21 24
22} // namespace Service::APM 25} // namespace Service::APM
diff --git a/src/core/hle/service/apm/apm.h b/src/core/hle/service/apm/apm.h
index 4d7d5bb7c..cf4c2bb11 100644
--- a/src/core/hle/service/apm/apm.h
+++ b/src/core/hle/service/apm/apm.h
@@ -8,11 +8,6 @@
8 8
9namespace Service::APM { 9namespace Service::APM {
10 10
11enum class PerformanceMode : u8 {
12 Handheld = 0,
13 Docked = 1,
14};
15
16class Module final { 11class Module final {
17public: 12public:
18 Module(); 13 Module();
@@ -20,6 +15,6 @@ public:
20}; 15};
21 16
22/// Registers all AM services with the specified service manager. 17/// Registers all AM services with the specified service manager.
23void InstallInterfaces(SM::ServiceManager& service_manager); 18void InstallInterfaces(Core::System& system);
24 19
25} // namespace Service::APM 20} // namespace Service::APM