From acd35e1b60b7e0420b7f385515bff8a2f4465874 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Tue, 21 Jul 2020 14:06:52 +1000 Subject: [PATCH 1/2] nifm: GetAppletInfo stub Fixes crash for Catherine Full Body --- src/core/hle/service/nifm/nifm.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp index 2e9d951954..7eef35e54f 100644 --- a/src/core/hle/service/nifm/nifm.cpp +++ b/src/core/hle/service/nifm/nifm.cpp @@ -62,7 +62,7 @@ public: {18, nullptr, "SetRequirementByRevision"}, {19, nullptr, "GetRequirement"}, {20, nullptr, "GetRevision"}, - {21, nullptr, "GetAppletInfo"}, + {21, &IRequest::GetAppletInfo, "GetAppletInfo"}, {22, nullptr, "GetAdditionalInfo"}, {23, nullptr, "SetKeptInSleep"}, {24, nullptr, "RegisterSocketDescriptor"}, @@ -125,6 +125,13 @@ private: rb.Push(RESULT_SUCCESS); } + void GetAppletInfo(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service_NIFM, "(STUBBED) called"); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + } + Kernel::EventPair event1, event2; }; From 298b50e22055a89979f7bc9fde332966e9dd4b00 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Tue, 20 Oct 2020 16:45:01 +1100 Subject: [PATCH 2/2] Added remaining params --- src/core/hle/service/nifm/nifm.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp index 7eef35e54f..db7ec6d0ec 100644 --- a/src/core/hle/service/nifm/nifm.cpp +++ b/src/core/hle/service/nifm/nifm.cpp @@ -128,8 +128,11 @@ private: void GetAppletInfo(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_NIFM, "(STUBBED) called"); - IPC::ResponseBuilder rb{ctx, 2}; + IPC::ResponseBuilder rb{ctx, 8}; rb.Push(RESULT_SUCCESS); + rb.Push(0); + rb.Push(0); + rb.Push(0); } Kernel::EventPair event1, event2;