diff options
| author | 2015-01-18 15:20:28 -0800 | |
|---|---|---|
| committer | 2015-01-21 12:50:18 -0800 | |
| commit | 7516ceaf93cf416ade59dfb3b17d5ea4cdb57ef2 (patch) | |
| tree | 6ce177eb4375ebcedcac221c4fb8086c8c55661b /src/core | |
| parent | Merge pull request #429 from Kingcom/titlebar (diff) | |
| download | yuzu-7516ceaf93cf416ade59dfb3b17d5ea4cdb57ef2.tar.gz yuzu-7516ceaf93cf416ade59dfb3b17d5ea4cdb57ef2.tar.xz yuzu-7516ceaf93cf416ade59dfb3b17d5ea4cdb57ef2.zip | |
Stubbed ptm:play service
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/core/hle/service/ptm_play.cpp | 28 | ||||
| -rw-r--r-- | src/core/hle/service/ptm_play.h | 23 | ||||
| -rw-r--r-- | src/core/hle/service/service.cpp | 2 |
4 files changed, 55 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 0fc8bf318..e70cc74cb 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -64,6 +64,7 @@ set(SRCS | |||
| 64 | hle/service/nim_aoc.cpp | 64 | hle/service/nim_aoc.cpp |
| 65 | hle/service/nwm_uds.cpp | 65 | hle/service/nwm_uds.cpp |
| 66 | hle/service/pm_app.cpp | 66 | hle/service/pm_app.cpp |
| 67 | hle/service/ptm_play.cpp | ||
| 67 | hle/service/ptm_u.cpp | 68 | hle/service/ptm_u.cpp |
| 68 | hle/service/ptm_sysm.cpp | 69 | hle/service/ptm_sysm.cpp |
| 69 | hle/service/service.cpp | 70 | hle/service/service.cpp |
| @@ -161,6 +162,7 @@ set(HEADERS | |||
| 161 | hle/service/nim_aoc.h | 162 | hle/service/nim_aoc.h |
| 162 | hle/service/nwm_uds.h | 163 | hle/service/nwm_uds.h |
| 163 | hle/service/pm_app.h | 164 | hle/service/pm_app.h |
| 165 | hle/service/ptm_play.h | ||
| 164 | hle/service/ptm_u.h | 166 | hle/service/ptm_u.h |
| 165 | hle/service/ptm_sysm.h | 167 | hle/service/ptm_sysm.h |
| 166 | hle/service/service.h | 168 | hle/service/service.h |
diff --git a/src/core/hle/service/ptm_play.cpp b/src/core/hle/service/ptm_play.cpp new file mode 100644 index 000000000..ae9e2925c --- /dev/null +++ b/src/core/hle/service/ptm_play.cpp | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | // Copyright 2015 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include "common/log.h" | ||
| 6 | #include "core/hle/hle.h" | ||
| 7 | #include "core/hle/service/ptm_play.h" | ||
| 8 | |||
| 9 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 10 | // Namespace PTM_PLAY | ||
| 11 | |||
| 12 | namespace PTM_PLAY { | ||
| 13 | |||
| 14 | const Interface::FunctionInfo FunctionTable[] = { | ||
| 15 | { 0x08070082, nullptr, "GetPlayHistory" }, | ||
| 16 | { 0x08080000, nullptr, "GetPlayHistoryStart" }, | ||
| 17 | { 0x08090000, nullptr, "GetPlayHistoryLength" }, | ||
| 18 | { 0x080B0080, nullptr, "CalcPlayHistoryStart" }, | ||
| 19 | }; | ||
| 20 | |||
| 21 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 22 | // Interface class | ||
| 23 | |||
| 24 | Interface::Interface() { | ||
| 25 | Register(FunctionTable, ARRAY_SIZE(FunctionTable)); | ||
| 26 | } | ||
| 27 | |||
| 28 | } // namespace | ||
diff --git a/src/core/hle/service/ptm_play.h b/src/core/hle/service/ptm_play.h new file mode 100644 index 000000000..2f4f0d6fd --- /dev/null +++ b/src/core/hle/service/ptm_play.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | // Copyright 2015 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 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 10 | // Namespace PTM_PLAY | ||
| 11 | |||
| 12 | namespace PTM_PLAY { | ||
| 13 | |||
| 14 | class Interface : public Service::Interface { | ||
| 15 | public: | ||
| 16 | Interface(); | ||
| 17 | |||
| 18 | std::string GetPortName() const override { | ||
| 19 | return "ptm:play"; | ||
| 20 | } | ||
| 21 | }; | ||
| 22 | |||
| 23 | } // namespace | ||
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 446ed5164..83cf617a9 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp | |||
| @@ -35,6 +35,7 @@ | |||
| 35 | #include "core/hle/service/nim_aoc.h" | 35 | #include "core/hle/service/nim_aoc.h" |
| 36 | #include "core/hle/service/nwm_uds.h" | 36 | #include "core/hle/service/nwm_uds.h" |
| 37 | #include "core/hle/service/pm_app.h" | 37 | #include "core/hle/service/pm_app.h" |
| 38 | #include "core/hle/service/ptm_play.h" | ||
| 38 | #include "core/hle/service/ptm_u.h" | 39 | #include "core/hle/service/ptm_u.h" |
| 39 | #include "core/hle/service/ptm_sysm.h" | 40 | #include "core/hle/service/ptm_sysm.h" |
| 40 | #include "core/hle/service/soc_u.h" | 41 | #include "core/hle/service/soc_u.h" |
| @@ -112,6 +113,7 @@ void Init() { | |||
| 112 | g_manager->AddService(new NIM_AOC::Interface); | 113 | g_manager->AddService(new NIM_AOC::Interface); |
| 113 | g_manager->AddService(new NWM_UDS::Interface); | 114 | g_manager->AddService(new NWM_UDS::Interface); |
| 114 | g_manager->AddService(new PM_APP::Interface); | 115 | g_manager->AddService(new PM_APP::Interface); |
| 116 | g_manager->AddService(new PTM_PLAY::Interface); | ||
| 115 | g_manager->AddService(new PTM_U::Interface); | 117 | g_manager->AddService(new PTM_U::Interface); |
| 116 | g_manager->AddService(new PTM_SYSM::Interface); | 118 | g_manager->AddService(new PTM_SYSM::Interface); |
| 117 | g_manager->AddService(new SOC_U::Interface); | 119 | g_manager->AddService(new SOC_U::Interface); |