Kaynağa Gözat

Merge pull request #5856 from Morph1984/nifm-fix-getappletinfo-stub

nifm: Fix GetAppletInfo stub
Ameer J 5 yıl önce
ebeveyn
işleme
f614d7d887
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5 1
      src/core/hle/service/nifm/nifm.cpp

+ 5 - 1
src/core/hle/service/nifm/nifm.cpp

@@ -128,7 +128,11 @@ private:
     void GetAppletInfo(Kernel::HLERequestContext& ctx) {
     void GetAppletInfo(Kernel::HLERequestContext& ctx) {
         LOG_WARNING(Service_NIFM, "(STUBBED) called");
         LOG_WARNING(Service_NIFM, "(STUBBED) called");
 
 
-        IPC::ResponseBuilder rb{ctx, 8};
+        std::vector<u8> out_buffer(ctx.GetWriteBufferSize());
+
+        ctx.WriteBuffer(out_buffer);
+
+        IPC::ResponseBuilder rb{ctx, 5};
         rb.Push(RESULT_SUCCESS);
         rb.Push(RESULT_SUCCESS);
         rb.Push<u32>(0);
         rb.Push<u32>(0);
         rb.Push<u32>(0);
         rb.Push<u32>(0);