Sfoglia il codice sorgente

nim: Stub IsLargeResourceAvailable

- Used by Immortals Fenyx Rising
Morph 5 anni fa
parent
commit
c2f83c04cb
1 ha cambiato i file con 13 aggiunte e 1 eliminazioni
  1. 13 1
      src/core/hle/service/nim/nim.cpp

+ 13 - 1
src/core/hle/service/nim/nim.cpp

@@ -217,7 +217,7 @@ public:
             {1, nullptr, "RefreshDebugAvailability"},
             {2, nullptr, "ClearDebugResponse"},
             {3, nullptr, "RegisterDebugResponse"},
-            {4, nullptr, "IsLargeResourceAvailable"},
+            {4, &NIM_ECA::IsLargeResourceAvailable, "IsLargeResourceAvailable"},
         };
         // clang-format on
 
@@ -231,6 +231,18 @@ private:
         rb.Push(RESULT_SUCCESS);
         rb.PushIpcInterface<IShopServiceAccessServer>(system);
     }
+
+    void IsLargeResourceAvailable(Kernel::HLERequestContext& ctx) {
+        IPC::RequestParser rp{ctx};
+
+        const auto unknown{rp.Pop<u64>()};
+
+        LOG_INFO(Service_NIM, "(STUBBED) called, unknown={}", unknown);
+
+        IPC::ResponseBuilder rb{ctx, 3};
+        rb.Push(RESULT_SUCCESS);
+        rb.Push(false);
+    }
 };
 
 class NIM_SHP final : public ServiceFramework<NIM_SHP> {