Răsfoiți Sursa

Stubbed out GetPlayerLedPattern

Hexagon12 8 ani în urmă
părinte
comite
56d2958aaf
1 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 7 1
      src/core/hle/service/hid/hid.cpp

+ 7 - 1
src/core/hle/service/hid/hid.cpp

@@ -237,7 +237,7 @@ public:
             {106, &Hid::AcquireNpadStyleSetUpdateEventHandle,
             {106, &Hid::AcquireNpadStyleSetUpdateEventHandle,
              "AcquireNpadStyleSetUpdateEventHandle"},
              "AcquireNpadStyleSetUpdateEventHandle"},
             {107, nullptr, "DisconnectNpad"},
             {107, nullptr, "DisconnectNpad"},
-            {108, nullptr, "GetPlayerLedPattern"},
+            {108, &Hid::GetPlayerLedPattern, "GetPlayerLedPattern"},
             {120, &Hid::SetNpadJoyHoldType, "SetNpadJoyHoldType"},
             {120, &Hid::SetNpadJoyHoldType, "SetNpadJoyHoldType"},
             {121, &Hid::GetNpadJoyHoldType, "GetNpadJoyHoldType"},
             {121, &Hid::GetNpadJoyHoldType, "GetNpadJoyHoldType"},
             {122, &Hid::SetNpadJoyAssignmentModeSingleByDefault,
             {122, &Hid::SetNpadJoyAssignmentModeSingleByDefault,
@@ -358,6 +358,12 @@ private:
         LOG_WARNING(Service_HID, "(STUBBED) called");
         LOG_WARNING(Service_HID, "(STUBBED) called");
     }
     }
 
 
+    void GetPlayerLedPattern(Kernel::HLERequestContext& ctx) {
+        IPC::ResponseBuilder rb{ctx, 2};
+        rb.Push(RESULT_SUCCESS);
+        LOG_WARNING(Service_HID, "(STUBBED) called");
+    }
+
     void SetNpadJoyHoldType(Kernel::HLERequestContext& ctx) {
     void SetNpadJoyHoldType(Kernel::HLERequestContext& ctx) {
         IPC::ResponseBuilder rb{ctx, 2};
         IPC::ResponseBuilder rb{ctx, 2};
         rb.Push(RESULT_SUCCESS);
         rb.Push(RESULT_SUCCESS);