summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2025-02-08 20:28:25 +1000
committerZephyron <zephyron@citron-emu.org>2025-02-08 20:28:25 +1000
commit92b70b31e09b84cb1970979e853987343ea3f626 (patch)
tree44a3f47e5e3e68372efcb3f4c0145a0ece7dfff8 /src
parent4792ba752ec484af3a75a64bab84db352d42b662 (diff)
service/nim: implement CreateServerInterface2 and improve logging
- Add CreateServerInterface2 implementation for NIM_ECA service - Change log level from WARNING to DEBUG for CreateServerInterface - Add descriptive log message for server interface creation - Maintain consistent interface creation pattern between both versions - Fix missing comma in function registration array These changes improve the NIM service implementation by adding support for the newer server interface creation method while making logging more appropriate for stubbed functions.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nim/nim.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/nim/nim.cpp b/src/core/hle/service/nim/nim.cpp
index 42de87f9a..15cf2e022 100644
--- a/src/core/hle/service/nim/nim.cpp
+++ b/src/core/hle/service/nim/nim.cpp
@@ -232,6 +232,7 @@ public:
{2, nullptr, "ClearDebugResponse"},
{3, nullptr, "RegisterDebugResponse"},
{4, &NIM_ECA::IsLargeResourceAvailable, "IsLargeResourceAvailable"},
+ {5, &NIM_ECA::CreateServerInterface2, "CreateServerInterface2"}
};
// clang-format on
@@ -240,7 +241,7 @@ public:
private:
void CreateServerInterface(HLERequestContext& ctx) {
- LOG_WARNING(Service_NIM, "(STUBBED) called");
+ LOG_DEBUG(Service_NIM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
rb.PushIpcInterface<IShopServiceAccessServer>(system);
@@ -257,6 +258,13 @@ private:
rb.Push(ResultSuccess);
rb.Push(false);
}
+
+ void CreateServerInterface2(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_NIM, "Creating shop service access server interface");
+ IPC::ResponseBuilder rb{ctx, 2, 0, 1};
+ rb.Push(ResultSuccess);
+ rb.PushIpcInterface<IShopServiceAccessServer>(system);
+ }
};
class NIM_SHP final : public ServiceFramework<NIM_SHP> {