diff options
| author | 2014-12-14 22:55:51 -0800 | |
|---|---|---|
| committer | 2014-12-15 15:32:42 -0800 | |
| commit | 89eef9eb6db81da44922b0968ea6705412b12ca6 (patch) | |
| tree | 275376c926139351991298d165d045e00133b37c | |
| parent | Added stub for cecd:u service... (diff) | |
| download | yuzu-89eef9eb6db81da44922b0968ea6705412b12ca6.tar.gz yuzu-89eef9eb6db81da44922b0968ea6705412b12ca6.tar.xz yuzu-89eef9eb6db81da44922b0968ea6705412b12ca6.zip | |
Added stub for nim:aoc service...
| -rw-r--r-- | src/core/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/core/hle/service/nim_aoc.cpp | 31 | ||||
| -rw-r--r-- | src/core/hle/service/nim_aoc.h | 27 | ||||
| -rw-r--r-- | src/core/hle/service/service.cpp | 2 |
4 files changed, 62 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 970736042..dcbe12a89 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -50,6 +50,7 @@ set(SRCS | |||
| 50 | hle/service/ir_u.cpp | 50 | hle/service/ir_u.cpp |
| 51 | hle/service/ldr_ro.cpp | 51 | hle/service/ldr_ro.cpp |
| 52 | hle/service/mic_u.cpp | 52 | hle/service/mic_u.cpp |
| 53 | hle/service/nim_aoc.cpp | ||
| 53 | hle/service/ndm_u.cpp | 54 | hle/service/ndm_u.cpp |
| 54 | hle/service/nwm_uds.cpp | 55 | hle/service/nwm_uds.cpp |
| 55 | hle/service/pm_app.cpp | 56 | hle/service/pm_app.cpp |
| @@ -132,6 +133,7 @@ set(HEADERS | |||
| 132 | hle/service/ir_u.h | 133 | hle/service/ir_u.h |
| 133 | hle/service/ldr_ro.h | 134 | hle/service/ldr_ro.h |
| 134 | hle/service/mic_u.h | 135 | hle/service/mic_u.h |
| 136 | hle/service/nim_aoc.h | ||
| 135 | hle/service/ndm_u.h | 137 | hle/service/ndm_u.h |
| 136 | hle/service/nwm_uds.h | 138 | hle/service/nwm_uds.h |
| 137 | hle/service/pm_app.h | 139 | hle/service/pm_app.h |
diff --git a/src/core/hle/service/nim_aoc.cpp b/src/core/hle/service/nim_aoc.cpp new file mode 100644 index 000000000..04c1e0cf3 --- /dev/null +++ b/src/core/hle/service/nim_aoc.cpp | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2+ | ||
| 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/nim_aoc.h" | ||
| 8 | |||
| 9 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 10 | // Namespace NIM_AOC | ||
| 11 | |||
| 12 | namespace NIM_AOC { | ||
| 13 | |||
| 14 | const Interface::FunctionInfo FunctionTable[] = { | ||
| 15 | {0x00030042, nullptr, "SetApplicationId"}, | ||
| 16 | {0x00040042, nullptr, "SetTin"}, | ||
| 17 | {0x000902D0, nullptr, "ListContentSetsEx"}, | ||
| 18 | {0x00180000, nullptr, "GetBalance"}, | ||
| 19 | {0x001D0000, nullptr, "GetCustomerSupportCode"}, | ||
| 20 | {0x00210000, nullptr, "Initialize"}, | ||
| 21 | {0x00240282, nullptr, "CalculateContentsRequiredSize"}, | ||
| 22 | {0x00250000, nullptr, "RefreshServerTime"}, | ||
| 23 | }; | ||
| 24 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 25 | // Interface class | ||
| 26 | |||
| 27 | Interface::Interface() { | ||
| 28 | Register(FunctionTable, ARRAY_SIZE(FunctionTable)); | ||
| 29 | } | ||
| 30 | |||
| 31 | } // namespace | ||
diff --git a/src/core/hle/service/nim_aoc.h b/src/core/hle/service/nim_aoc.h new file mode 100644 index 000000000..2cc673118 --- /dev/null +++ b/src/core/hle/service/nim_aoc.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2+ | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "core/hle/service/service.h" | ||
| 8 | |||
| 9 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 10 | // Namespace NIM_AOC | ||
| 11 | |||
| 12 | namespace NIM_AOC { | ||
| 13 | |||
| 14 | class Interface : public Service::Interface { | ||
| 15 | public: | ||
| 16 | Interface(); | ||
| 17 | |||
| 18 | /** | ||
| 19 | * Gets the string port name used by CTROS for the service | ||
| 20 | * @return Port name of service | ||
| 21 | */ | ||
| 22 | std::string GetPortName() const override { | ||
| 23 | return "nim:aoc"; | ||
| 24 | } | ||
| 25 | }; | ||
| 26 | |||
| 27 | } // namespace | ||
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 1b9822ddf..b33172932 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | #include "core/hle/service/ir_u.h" | 25 | #include "core/hle/service/ir_u.h" |
| 26 | #include "core/hle/service/ldr_ro.h" | 26 | #include "core/hle/service/ldr_ro.h" |
| 27 | #include "core/hle/service/mic_u.h" | 27 | #include "core/hle/service/mic_u.h" |
| 28 | #include "core/hle/service/nim_aoc.h" | ||
| 28 | #include "core/hle/service/ndm_u.h" | 29 | #include "core/hle/service/ndm_u.h" |
| 29 | #include "core/hle/service/nwm_uds.h" | 30 | #include "core/hle/service/nwm_uds.h" |
| 30 | #include "core/hle/service/pm_app.h" | 31 | #include "core/hle/service/pm_app.h" |
| @@ -105,6 +106,7 @@ void Init() { | |||
| 105 | g_manager->AddService(new IR_U::Interface); | 106 | g_manager->AddService(new IR_U::Interface); |
| 106 | g_manager->AddService(new LDR_RO::Interface); | 107 | g_manager->AddService(new LDR_RO::Interface); |
| 107 | g_manager->AddService(new MIC_U::Interface); | 108 | g_manager->AddService(new MIC_U::Interface); |
| 109 | g_manager->AddService(new NIM_AOC::Interface); | ||
| 108 | g_manager->AddService(new NDM_U::Interface); | 110 | g_manager->AddService(new NDM_U::Interface); |
| 109 | g_manager->AddService(new NWM_UDS::Interface); | 111 | g_manager->AddService(new NWM_UDS::Interface); |
| 110 | g_manager->AddService(new PM_APP::Interface); | 112 | g_manager->AddService(new PM_APP::Interface); |