diff options
| author | 2017-10-14 22:50:04 -0400 | |
|---|---|---|
| committer | 2017-10-14 22:50:04 -0400 | |
| commit | 72eeca1f037261ca2802da79ff1feff813e26e48 (patch) | |
| tree | 19c5b2e89cd832f8a87dcc82e415553dceb01060 /src/core/hle/service/apm | |
| parent | hle: Initial implementation of NX service framework and IPC. (diff) | |
| download | yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar.gz yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar.xz yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.zip | |
hle: Add service stubs for apm and appletOE.
Diffstat (limited to 'src/core/hle/service/apm')
| -rw-r--r-- | src/core/hle/service/apm/apm.cpp | 27 | ||||
| -rw-r--r-- | src/core/hle/service/apm/apm.h | 22 |
2 files changed, 49 insertions, 0 deletions
diff --git a/src/core/hle/service/apm/apm.cpp b/src/core/hle/service/apm/apm.cpp new file mode 100644 index 000000000..37b5bd647 --- /dev/null +++ b/src/core/hle/service/apm/apm.cpp | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | // Copyright 2017 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include "common/logging/log.h" | ||
| 6 | #include "core/hle/ipc_helpers.h" | ||
| 7 | #include "core/hle/service/apm/apm.h" | ||
| 8 | |||
| 9 | namespace Service { | ||
| 10 | namespace APM { | ||
| 11 | |||
| 12 | void InstallInterfaces(SM::ServiceManager& service_manager) { | ||
| 13 | std::make_shared<APM>()->InstallAsService(service_manager); | ||
| 14 | } | ||
| 15 | |||
| 16 | APM::APM() : ServiceFramework("apm") { | ||
| 17 | static const FunctionInfo functions[] = { | ||
| 18 | {0x00000000, nullptr, "OpenSession"}, | ||
| 19 | {0x00000001, nullptr, "GetPerformanceMode"}, | ||
| 20 | }; | ||
| 21 | RegisterHandlers(functions); | ||
| 22 | } | ||
| 23 | |||
| 24 | APM::~APM() = default; | ||
| 25 | |||
| 26 | } // namespace APM | ||
| 27 | } // namespace Service | ||
diff --git a/src/core/hle/service/apm/apm.h b/src/core/hle/service/apm/apm.h new file mode 100644 index 000000000..ce6ac0f66 --- /dev/null +++ b/src/core/hle/service/apm/apm.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | // Copyright 2017 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "core/hle/service/service.h" | ||
| 8 | |||
| 9 | namespace Service { | ||
| 10 | namespace APM { | ||
| 11 | |||
| 12 | class APM final : public ServiceFramework<APM> { | ||
| 13 | public: | ||
| 14 | explicit APM(); | ||
| 15 | ~APM(); | ||
| 16 | }; | ||
| 17 | |||
| 18 | /// Registers all AM services with the specified service manager. | ||
| 19 | void InstallInterfaces(SM::ServiceManager& service_manager); | ||
| 20 | |||
| 21 | } // namespace APM | ||
| 22 | } // namespace Service | ||