mirror of
https://git.citron-emu.org/Citron/Citron.git
synced 2025-02-15 21:16:19 +01:00
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.
This commit is contained in:
parent
4792ba752e
commit
92b70b31e0
1 changed files with 9 additions and 1 deletions
|
@ -232,6 +232,7 @@ public:
|
||||||
{2, nullptr, "ClearDebugResponse"},
|
{2, nullptr, "ClearDebugResponse"},
|
||||||
{3, nullptr, "RegisterDebugResponse"},
|
{3, nullptr, "RegisterDebugResponse"},
|
||||||
{4, &NIM_ECA::IsLargeResourceAvailable, "IsLargeResourceAvailable"},
|
{4, &NIM_ECA::IsLargeResourceAvailable, "IsLargeResourceAvailable"},
|
||||||
|
{5, &NIM_ECA::CreateServerInterface2, "CreateServerInterface2"}
|
||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
|
@ -240,7 +241,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void CreateServerInterface(HLERequestContext& ctx) {
|
void CreateServerInterface(HLERequestContext& ctx) {
|
||||||
LOG_WARNING(Service_NIM, "(STUBBED) called");
|
LOG_DEBUG(Service_NIM, "(STUBBED) called");
|
||||||
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
|
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
|
||||||
rb.Push(ResultSuccess);
|
rb.Push(ResultSuccess);
|
||||||
rb.PushIpcInterface<IShopServiceAccessServer>(system);
|
rb.PushIpcInterface<IShopServiceAccessServer>(system);
|
||||||
|
@ -257,6 +258,13 @@ private:
|
||||||
rb.Push(ResultSuccess);
|
rb.Push(ResultSuccess);
|
||||||
rb.Push(false);
|
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> {
|
class NIM_SHP final : public ServiceFramework<NIM_SHP> {
|
||||||
|
|
Loading…
Reference in a new issue