From 746f74897353bfddf1c09634774714e78e2fdd34 Mon Sep 17 00:00:00 2001 From: Zephyron Date: Wed, 1 Oct 2025 21:00:31 +1000 Subject: [PATCH] nim: Add CreateServerInterface2 - As Seen Via Logs "[ 46.275081] Debug core\hle\service\service.cpp:operator ():78: Assertion Failed! Unknown / unimplemented function '5': port='nim:eca' cmd_buf={[0]=0x6, [1]=0x8000000C, [2]=0x3, [3]=0x0, [4]=0x4F434653, [5]=0x2001C4, [6]=0x0, [7]=0x0, [8]=0x49434653}" - Thankyou Dr.Stug Signed-off-by: Zephyron --- src/core/hle/service/nim/nim.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/core/hle/service/nim/nim.cpp b/src/core/hle/service/nim/nim.cpp index 973f80ce3..b8da46eb6 100644 --- a/src/core/hle/service/nim/nim.cpp +++ b/src/core/hle/service/nim/nim.cpp @@ -489,6 +489,7 @@ public: {2, nullptr, "ClearDebugResponse"}, {3, nullptr, "RegisterDebugResponse"}, {4, &NIM_ECA::IsLargeResourceAvailable, "IsLargeResourceAvailable"}, + {5, &NIM_ECA::CreateServerInterface2, "CreateServerInterface2"}, }; // clang-format on @@ -503,6 +504,17 @@ private: rb.PushIpcInterface(system); } + void CreateServerInterface2(HLERequestContext& ctx) + { + // [17.0.0+] CreateServerInterface2 + // Use the same logic as CreateServerInterface + LOG_WARNING(Service_NIM, "(STUBBED) called"); + // Signal To IPC For A Response + IPC::ResponseBuilder rb{ctx, 2, 0, 1}; + rb.Push(ResultSuccess); + rb.PushIpcInterface(system); + } + void IsLargeResourceAvailable(HLERequestContext& ctx) { IPC::RequestParser rp{ctx};