summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nim/nim.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-09-30 20:19:58 +0200
committerSubv <subv2112@gmail.com>2017-09-30 20:21:45 +0200
commit5bae5a48b90cc9f6c847040e6f486296ed135017 (patch)
treeeb4b719e87e5ddc229a8d1e56cf524471a7ffc16 /src/core/hle/service/nim/nim.cpp
parentServices/UDS: Handle the rest of the connection sequence. (#2963) (diff)
downloadyuzu-5bae5a48b90cc9f6c847040e6f486296ed135017.tar
yuzu-5bae5a48b90cc9f6c847040e6f486296ed135017.tar.gz
yuzu-5bae5a48b90cc9f6c847040e6f486296ed135017.tar.bz2
yuzu-5bae5a48b90cc9f6c847040e6f486296ed135017.tar.lz
yuzu-5bae5a48b90cc9f6c847040e6f486296ed135017.tar.xz
yuzu-5bae5a48b90cc9f6c847040e6f486296ed135017.tar.zst
yuzu-5bae5a48b90cc9f6c847040e6f486296ed135017.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nim/nim.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/core/hle/service/nim/nim.cpp b/src/core/hle/service/nim/nim.cpp
index d5624fe54..b10d5852b 100644
--- a/src/core/hle/service/nim/nim.cpp
+++ b/src/core/hle/service/nim/nim.cpp
@@ -5,6 +5,8 @@
#include "common/common_types.h"
#include "common/logging/log.h"
#include "core/hle/ipc.h"
+#include "core/hle/ipc_helpers.h"
+#include "core/hle/kernel/event.h"
#include "core/hle/service/nim/nim.h"
#include "core/hle/service/nim/nim_aoc.h"
#include "core/hle/service/nim/nim_s.h"
@@ -14,6 +16,16 @@
namespace Service {
namespace NIM {
+static Kernel::SharedPtr<Kernel::Event> nim_system_update_event;
+
+void CheckForSysUpdateEvent(Service::Interface* self) {
+ IPC::RequestParser rp(Kernel::GetCommandBuffer(), 0x5, 0, 0); // 0x50000
+ IPC::RequestBuilder rb = rp.MakeBuilder(1, 2);
+ rb.Push(RESULT_SUCCESS);
+ rb.PushCopyHandles(Kernel::g_handle_table.Create(nim_system_update_event).Unwrap());
+ LOG_TRACE(Service_NIM, "called");
+}
+
void CheckSysUpdateAvailable(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
@@ -29,9 +41,13 @@ void Init() {
AddService(new NIM_AOC_Interface);
AddService(new NIM_S_Interface);
AddService(new NIM_U_Interface);
+
+ nim_system_update_event = Kernel::Event::Create(ResetType::OneShot, "NIM System Update Event");
}
-void Shutdown() {}
+void Shutdown() {
+ nim_system_update_event = nullptr;
+}
} // namespace NIM