diff options
| -rw-r--r-- | src/core/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/core/hle/service/act_a.cpp | 26 | ||||
| -rw-r--r-- | src/core/hle/service/act_a.h | 23 | ||||
| -rw-r--r-- | src/core/hle/service/act_u.cpp | 3 | ||||
| -rw-r--r-- | src/core/hle/service/service.cpp | 2 |
5 files changed, 56 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index f6a7566bf..12080a802 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -42,6 +42,7 @@ set(SRCS | |||
| 42 | hle/kernel/timer.cpp | 42 | hle/kernel/timer.cpp |
| 43 | hle/kernel/vm_manager.cpp | 43 | hle/kernel/vm_manager.cpp |
| 44 | hle/service/ac_u.cpp | 44 | hle/service/ac_u.cpp |
| 45 | hle/service/act_a.cpp | ||
| 45 | hle/service/act_u.cpp | 46 | hle/service/act_u.cpp |
| 46 | hle/service/am/am.cpp | 47 | hle/service/am/am.cpp |
| 47 | hle/service/am/am_app.cpp | 48 | hle/service/am/am_app.cpp |
| @@ -176,6 +177,7 @@ set(HEADERS | |||
| 176 | hle/kernel/vm_manager.h | 177 | hle/kernel/vm_manager.h |
| 177 | hle/result.h | 178 | hle/result.h |
| 178 | hle/service/ac_u.h | 179 | hle/service/ac_u.h |
| 180 | hle/service/act_a.h | ||
| 179 | hle/service/act_u.h | 181 | hle/service/act_u.h |
| 180 | hle/service/am/am.h | 182 | hle/service/am/am.h |
| 181 | hle/service/am/am_app.h | 183 | hle/service/am/am_app.h |
diff --git a/src/core/hle/service/act_a.cpp b/src/core/hle/service/act_a.cpp new file mode 100644 index 000000000..3a775fa90 --- /dev/null +++ b/src/core/hle/service/act_a.cpp | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | // Copyright 2016 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include "core/hle/service/act_a.h" | ||
| 6 | |||
| 7 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 8 | // Namespace ACT_A | ||
| 9 | |||
| 10 | namespace ACT_A { | ||
| 11 | |||
| 12 | const Interface::FunctionInfo FunctionTable[] = { | ||
| 13 | {0x041300C2, nullptr, "UpdateMiiImage"}, | ||
| 14 | {0x041B0142, nullptr, "AgreeEula"}, | ||
| 15 | {0x04210042, nullptr, "UploadMii"}, | ||
| 16 | {0x04230082, nullptr, "ValidateMailAddress"}, | ||
| 17 | }; | ||
| 18 | |||
| 19 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 20 | // Interface class | ||
| 21 | |||
| 22 | Interface::Interface() { | ||
| 23 | Register(FunctionTable); | ||
| 24 | } | ||
| 25 | |||
| 26 | } // namespace | ||
diff --git a/src/core/hle/service/act_a.h b/src/core/hle/service/act_a.h new file mode 100644 index 000000000..765cae644 --- /dev/null +++ b/src/core/hle/service/act_a.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | // Copyright 2016 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 ACT_A | ||
| 11 | |||
| 12 | namespace ACT_A { | ||
| 13 | |||
| 14 | class Interface : public Service::Interface { | ||
| 15 | public: | ||
| 16 | Interface(); | ||
| 17 | |||
| 18 | std::string GetPortName() const override { | ||
| 19 | return "act:a"; | ||
| 20 | } | ||
| 21 | }; | ||
| 22 | |||
| 23 | } // namespace | ||
diff --git a/src/core/hle/service/act_u.cpp b/src/core/hle/service/act_u.cpp index b23d17fba..05de4d002 100644 --- a/src/core/hle/service/act_u.cpp +++ b/src/core/hle/service/act_u.cpp | |||
| @@ -10,7 +10,10 @@ | |||
| 10 | namespace ACT_U { | 10 | namespace ACT_U { |
| 11 | 11 | ||
| 12 | const Interface::FunctionInfo FunctionTable[] = { | 12 | const Interface::FunctionInfo FunctionTable[] = { |
| 13 | {0x00010084, nullptr, "Initialize"}, | ||
| 14 | {0x00020040, nullptr, "GetErrorCode"}, | ||
| 13 | {0x000600C2, nullptr, "GetAccountDataBlock"}, | 15 | {0x000600C2, nullptr, "GetAccountDataBlock"}, |
| 16 | {0x000D0040, nullptr, "GenerateUuid"}, | ||
| 14 | }; | 17 | }; |
| 15 | 18 | ||
| 16 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 19 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 0fe3a4d7a..d7e7d4fe3 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | #include "core/hle/service/service.h" | 8 | #include "core/hle/service/service.h" |
| 9 | #include "core/hle/service/ac_u.h" | 9 | #include "core/hle/service/ac_u.h" |
| 10 | #include "core/hle/service/act_a.h" | ||
| 10 | #include "core/hle/service/act_u.h" | 11 | #include "core/hle/service/act_u.h" |
| 11 | #include "core/hle/service/csnd_snd.h" | 12 | #include "core/hle/service/csnd_snd.h" |
| 12 | #include "core/hle/service/dlp_srvr.h" | 13 | #include "core/hle/service/dlp_srvr.h" |
| @@ -119,6 +120,7 @@ void Init() { | |||
| 119 | Service::PTM::Init(); | 120 | Service::PTM::Init(); |
| 120 | 121 | ||
| 121 | AddService(new AC_U::Interface); | 122 | AddService(new AC_U::Interface); |
| 123 | AddService(new ACT_A::Interface); | ||
| 122 | AddService(new ACT_U::Interface); | 124 | AddService(new ACT_U::Interface); |
| 123 | AddService(new CSND_SND::Interface); | 125 | AddService(new CSND_SND::Interface); |
| 124 | AddService(new DLP_SRVR::Interface); | 126 | AddService(new DLP_SRVR::Interface); |