VERY experimental Nintendo Switch 2 emulator
C++
Added stub for nim:aoc service...
archshift89eef9eb6db8
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txtindex 9707360428..dcbe12a890 100644--- a/src/core/CMakeLists.txt+++ b/src/core/CMakeLists.txt@@ -50,6 +50,7 @@ set(SRCShle/service/ir_u.cpphle/service/ldr_ro.cpphle/service/mic_u.cpp+ hle/service/nim_aoc.cpphle/service/ndm_u.cpphle/service/nwm_uds.cpphle/service/pm_app.cpp@@ -132,6 +133,7 @@ set(HEADERShle/service/ir_u.hhle/service/ldr_ro.hhle/service/mic_u.h+ hle/service/nim_aoc.hhle/service/ndm_u.hhle/service/nwm_uds.hhle/service/pm_app.hdiff --git a/src/core/hle/service/nim_aoc.cpp b/src/core/hle/service/nim_aoc.cppnew file mode 100644index 0000000000..04c1e0cf33--- /dev/null+++ b/src/core/hle/service/nim_aoc.cpp@@ -0,0 +1,31 @@+// Copyright 2014 Citra Emulator Project+// Licensed under GPLv2++// Refer to the license.txt file included.++#include "common/log.h"+#include "core/hle/hle.h"+#include "core/hle/service/nim_aoc.h"++////////////////////////////////////////////////////////////////////////////////////////////////////+// Namespace NIM_AOC++namespace NIM_AOC {++const Interface::FunctionInfo FunctionTable[] = {+ {0x00030042, nullptr, "SetApplicationId"},+ {0x00040042, nullptr, "SetTin"},+ {0x000902D0, nullptr, "ListContentSetsEx"},+ {0x00180000, nullptr, "GetBalance"},+ {0x001D0000, nullptr, "GetCustomerSupportCode"},+ {0x00210000, nullptr, "Initialize"},+ {0x00240282, nullptr, "CalculateContentsRequiredSize"},+ {0x00250000, nullptr, "RefreshServerTime"},+};+////////////////////////////////////////////////////////////////////////////////////////////////////+// Interface class++Interface::Interface() {+ Register(FunctionTable, ARRAY_SIZE(FunctionTable));+}++} // namespacediff --git a/src/core/hle/service/nim_aoc.h b/src/core/hle/service/nim_aoc.hnew file mode 100644index 0000000000..2cc6731188--- /dev/null+++ b/src/core/hle/service/nim_aoc.h@@ -0,0 +1,27 @@+// Copyright 2014 Citra Emulator Project+// Licensed under GPLv2++// Refer to the license.txt file included.++#pragma once++#include "core/hle/service/service.h"++////////////////////////////////////////////////////////////////////////////////////////////////////+// Namespace NIM_AOC++namespace NIM_AOC {++class Interface : public Service::Interface {+public:+ Interface();++ /**+ * Gets the string port name used by CTROS for the service+ * @return Port name of service+ */+ std::string GetPortName() const override {+ return "nim:aoc";+ }+};++} // namespacediff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cppindex 1b9822ddf2..b33172932b 100644--- a/src/core/hle/service/service.cpp+++ b/src/core/hle/service/service.cpp@@ -25,6 +25,7 @@#include "core/hle/service/ir_u.h"#include "core/hle/service/ldr_ro.h"#include "core/hle/service/mic_u.h"+#include "core/hle/service/nim_aoc.h"#include "core/hle/service/ndm_u.h"#include "core/hle/service/nwm_uds.h"#include "core/hle/service/pm_app.h"@@ -105,6 +106,7 @@ void Init() {g_manager->AddService(new IR_U::Interface);g_manager->AddService(new LDR_RO::Interface);g_manager->AddService(new MIC_U::Interface);+ g_manager->AddService(new NIM_AOC::Interface);g_manager->AddService(new NDM_U::Interface);g_manager->AddService(new NWM_UDS::Interface);g_manager->AddService(new PM_APP::Interface);