diff options
| author | 2017-10-10 17:32:14 -0400 | |
|---|---|---|
| committer | 2017-10-10 17:32:14 -0400 | |
| commit | 0906de9a14b735d1d409290ca050eb7d2c2d3d84 (patch) | |
| tree | 79bb57d3a4dc4ca377e7a62744c3941de29e785b /src/core/hle/service/nim | |
| parent | Merge remote-tracking branch 'upstream/master' into nx (diff) | |
| download | yuzu-0906de9a14b735d1d409290ca050eb7d2c2d3d84.tar.gz yuzu-0906de9a14b735d1d409290ca050eb7d2c2d3d84.tar.xz yuzu-0906de9a14b735d1d409290ca050eb7d2c2d3d84.zip | |
hle: Remove a large amount of 3ds-specific service code.
Diffstat (limited to 'src/core/hle/service/nim')
| -rw-r--r-- | src/core/hle/service/nim/nim.cpp | 54 | ||||
| -rw-r--r-- | src/core/hle/service/nim/nim.h | 41 | ||||
| -rw-r--r-- | src/core/hle/service/nim/nim_aoc.cpp | 26 | ||||
| -rw-r--r-- | src/core/hle/service/nim/nim_aoc.h | 22 | ||||
| -rw-r--r-- | src/core/hle/service/nim/nim_s.cpp | 23 | ||||
| -rw-r--r-- | src/core/hle/service/nim/nim_s.h | 22 | ||||
| -rw-r--r-- | src/core/hle/service/nim/nim_u.cpp | 26 | ||||
| -rw-r--r-- | src/core/hle/service/nim/nim_u.h | 22 |
8 files changed, 0 insertions, 236 deletions
diff --git a/src/core/hle/service/nim/nim.cpp b/src/core/hle/service/nim/nim.cpp deleted file mode 100644 index b10d5852b..000000000 --- a/src/core/hle/service/nim/nim.cpp +++ /dev/null | |||
| @@ -1,54 +0,0 @@ | |||
| 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/common_types.h" | ||
| 6 | #include "common/logging/log.h" | ||
| 7 | #include "core/hle/ipc.h" | ||
| 8 | #include "core/hle/ipc_helpers.h" | ||
| 9 | #include "core/hle/kernel/event.h" | ||
| 10 | #include "core/hle/service/nim/nim.h" | ||
| 11 | #include "core/hle/service/nim/nim_aoc.h" | ||
| 12 | #include "core/hle/service/nim/nim_s.h" | ||
| 13 | #include "core/hle/service/nim/nim_u.h" | ||
| 14 | #include "core/hle/service/service.h" | ||
| 15 | |||
| 16 | namespace Service { | ||
| 17 | namespace NIM { | ||
| 18 | |||
| 19 | static Kernel::SharedPtr<Kernel::Event> nim_system_update_event; | ||
| 20 | |||
| 21 | void CheckForSysUpdateEvent(Service::Interface* self) { | ||
| 22 | IPC::RequestParser rp(Kernel::GetCommandBuffer(), 0x5, 0, 0); // 0x50000 | ||
| 23 | IPC::RequestBuilder rb = rp.MakeBuilder(1, 2); | ||
| 24 | rb.Push(RESULT_SUCCESS); | ||
| 25 | rb.PushCopyHandles(Kernel::g_handle_table.Create(nim_system_update_event).Unwrap()); | ||
| 26 | LOG_TRACE(Service_NIM, "called"); | ||
| 27 | } | ||
| 28 | |||
| 29 | void CheckSysUpdateAvailable(Service::Interface* self) { | ||
| 30 | u32* cmd_buff = Kernel::GetCommandBuffer(); | ||
| 31 | |||
| 32 | cmd_buff[1] = RESULT_SUCCESS.raw; | ||
| 33 | cmd_buff[2] = 0; // No update available | ||
| 34 | |||
| 35 | LOG_WARNING(Service_NIM, "(STUBBED) called"); | ||
| 36 | } | ||
| 37 | |||
| 38 | void Init() { | ||
| 39 | using namespace Kernel; | ||
| 40 | |||
| 41 | AddService(new NIM_AOC_Interface); | ||
| 42 | AddService(new NIM_S_Interface); | ||
| 43 | AddService(new NIM_U_Interface); | ||
| 44 | |||
| 45 | nim_system_update_event = Kernel::Event::Create(ResetType::OneShot, "NIM System Update Event"); | ||
| 46 | } | ||
| 47 | |||
| 48 | void Shutdown() { | ||
| 49 | nim_system_update_event = nullptr; | ||
| 50 | } | ||
| 51 | |||
| 52 | } // namespace NIM | ||
| 53 | |||
| 54 | } // namespace Service | ||
diff --git a/src/core/hle/service/nim/nim.h b/src/core/hle/service/nim/nim.h deleted file mode 100644 index dbf605e5a..000000000 --- a/src/core/hle/service/nim/nim.h +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 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 | namespace Service { | ||
| 8 | |||
| 9 | class Interface; | ||
| 10 | |||
| 11 | namespace NIM { | ||
| 12 | |||
| 13 | /** | ||
| 14 | * NIM::CheckForSysUpdateEvent service function | ||
| 15 | * Inputs: | ||
| 16 | * 1 : None | ||
| 17 | * Outputs: | ||
| 18 | * 1 : Result of function, 0 on success, otherwise error code | ||
| 19 | * 2 : Copy handle descriptor | ||
| 20 | * 3 : System Update event handle | ||
| 21 | */ | ||
| 22 | void CheckForSysUpdateEvent(Service::Interface* self); | ||
| 23 | |||
| 24 | /** | ||
| 25 | * NIM::CheckSysUpdateAvailable service function | ||
| 26 | * Inputs: | ||
| 27 | * 1 : None | ||
| 28 | * Outputs: | ||
| 29 | * 1 : Result of function, 0 on success, otherwise error code | ||
| 30 | * 2 : flag, 0 = no system update available, 1 = system update available. | ||
| 31 | */ | ||
| 32 | void CheckSysUpdateAvailable(Service::Interface* self); | ||
| 33 | |||
| 34 | /// Initialize NIM service(s) | ||
| 35 | void Init(); | ||
| 36 | |||
| 37 | /// Shutdown NIM service(s) | ||
| 38 | void Shutdown(); | ||
| 39 | |||
| 40 | } // namespace NIM | ||
| 41 | } // namespace Service | ||
diff --git a/src/core/hle/service/nim/nim_aoc.cpp b/src/core/hle/service/nim/nim_aoc.cpp deleted file mode 100644 index 2d0fb6fc4..000000000 --- a/src/core/hle/service/nim/nim_aoc.cpp +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 1 | // Copyright 2014 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/nim/nim_aoc.h" | ||
| 6 | |||
| 7 | namespace Service { | ||
| 8 | namespace NIM { | ||
| 9 | |||
| 10 | const Interface::FunctionInfo FunctionTable[] = { | ||
| 11 | {0x00030042, nullptr, "SetApplicationId"}, | ||
| 12 | {0x00040042, nullptr, "SetTin"}, | ||
| 13 | {0x000902D0, nullptr, "ListContentSetsEx"}, | ||
| 14 | {0x00180000, nullptr, "GetBalance"}, | ||
| 15 | {0x001D0000, nullptr, "GetCustomerSupportCode"}, | ||
| 16 | {0x00210000, nullptr, "Initialize"}, | ||
| 17 | {0x00240282, nullptr, "CalculateContentsRequiredSize"}, | ||
| 18 | {0x00250000, nullptr, "RefreshServerTime"}, | ||
| 19 | }; | ||
| 20 | |||
| 21 | NIM_AOC_Interface::NIM_AOC_Interface() { | ||
| 22 | Register(FunctionTable); | ||
| 23 | } | ||
| 24 | |||
| 25 | } // namespace NIM | ||
| 26 | } // namespace Service | ||
diff --git a/src/core/hle/service/nim/nim_aoc.h b/src/core/hle/service/nim/nim_aoc.h deleted file mode 100644 index aace45b5a..000000000 --- a/src/core/hle/service/nim/nim_aoc.h +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | // Copyright 2014 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 NIM { | ||
| 11 | |||
| 12 | class NIM_AOC_Interface : public Service::Interface { | ||
| 13 | public: | ||
| 14 | NIM_AOC_Interface(); | ||
| 15 | |||
| 16 | std::string GetPortName() const override { | ||
| 17 | return "nim:aoc"; | ||
| 18 | } | ||
| 19 | }; | ||
| 20 | |||
| 21 | } // namespace NIM | ||
| 22 | } // namespace Service | ||
diff --git a/src/core/hle/service/nim/nim_s.cpp b/src/core/hle/service/nim/nim_s.cpp deleted file mode 100644 index 28b87e6f7..000000000 --- a/src/core/hle/service/nim/nim_s.cpp +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 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 "core/hle/service/nim/nim_s.h" | ||
| 6 | |||
| 7 | namespace Service { | ||
| 8 | namespace NIM { | ||
| 9 | |||
| 10 | const Interface::FunctionInfo FunctionTable[] = { | ||
| 11 | {0x000A0000, nullptr, "CheckSysupdateAvailableSOAP"}, | ||
| 12 | {0x0016020A, nullptr, "ListTitles"}, | ||
| 13 | {0x00290000, nullptr, "AccountCheckBalanceSOAP"}, | ||
| 14 | {0x002D0042, nullptr, "DownloadTickets"}, | ||
| 15 | {0x00420240, nullptr, "StartDownload"}, | ||
| 16 | }; | ||
| 17 | |||
| 18 | NIM_S_Interface::NIM_S_Interface() { | ||
| 19 | Register(FunctionTable); | ||
| 20 | } | ||
| 21 | |||
| 22 | } // namespace NIM | ||
| 23 | } // namespace Service | ||
diff --git a/src/core/hle/service/nim/nim_s.h b/src/core/hle/service/nim/nim_s.h deleted file mode 100644 index f4bf73d26..000000000 --- a/src/core/hle/service/nim/nim_s.h +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 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 | namespace Service { | ||
| 10 | namespace NIM { | ||
| 11 | |||
| 12 | class NIM_S_Interface : public Service::Interface { | ||
| 13 | public: | ||
| 14 | NIM_S_Interface(); | ||
| 15 | |||
| 16 | std::string GetPortName() const override { | ||
| 17 | return "nim:s"; | ||
| 18 | } | ||
| 19 | }; | ||
| 20 | |||
| 21 | } // namespace NIM | ||
| 22 | } // namespace Service | ||
diff --git a/src/core/hle/service/nim/nim_u.cpp b/src/core/hle/service/nim/nim_u.cpp deleted file mode 100644 index 569660278..000000000 --- a/src/core/hle/service/nim/nim_u.cpp +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 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 "core/hle/service/nim/nim.h" | ||
| 6 | #include "core/hle/service/nim/nim_u.h" | ||
| 7 | |||
| 8 | namespace Service { | ||
| 9 | namespace NIM { | ||
| 10 | |||
| 11 | const Interface::FunctionInfo FunctionTable[] = { | ||
| 12 | {0x00010000, nullptr, "StartSysUpdate"}, | ||
| 13 | {0x00020000, nullptr, "GetUpdateDownloadProgress"}, | ||
| 14 | {0x00040000, nullptr, "FinishTitlesInstall"}, | ||
| 15 | {0x00050000, CheckForSysUpdateEvent, "CheckForSysUpdateEvent"}, | ||
| 16 | {0x00090000, CheckSysUpdateAvailable, "CheckSysUpdateAvailable"}, | ||
| 17 | {0x000A0000, nullptr, "GetState"}, | ||
| 18 | {0x000B0000, nullptr, "GetSystemTitleHash"}, | ||
| 19 | }; | ||
| 20 | |||
| 21 | NIM_U_Interface::NIM_U_Interface() { | ||
| 22 | Register(FunctionTable); | ||
| 23 | } | ||
| 24 | |||
| 25 | } // namespace NIM | ||
| 26 | } // namespace Service | ||
diff --git a/src/core/hle/service/nim/nim_u.h b/src/core/hle/service/nim/nim_u.h deleted file mode 100644 index c4b74985a..000000000 --- a/src/core/hle/service/nim/nim_u.h +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 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 | namespace Service { | ||
| 10 | namespace NIM { | ||
| 11 | |||
| 12 | class NIM_U_Interface : public Service::Interface { | ||
| 13 | public: | ||
| 14 | NIM_U_Interface(); | ||
| 15 | |||
| 16 | std::string GetPortName() const override { | ||
| 17 | return "nim:u"; | ||
| 18 | } | ||
| 19 | }; | ||
| 20 | |||
| 21 | } // namespace NIM | ||
| 22 | } // namespace Service | ||