瀏覽代碼

Implement IParentalControlService CheckFreeCommunicationPermission (#665)

Resolves #628
jduncanator 7 年之前
父節點
當前提交
354a30370d
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      Ryujinx.HLE/HOS/Services/Pctl/IParentalControlService.cs

+ 10 - 1
Ryujinx.HLE/HOS/Services/Pctl/IParentalControlService.cs

@@ -1,5 +1,6 @@
 using Ryujinx.Common.Logging;
 using Ryujinx.HLE.HOS.Ipc;
+using System;
 using System.Collections.Generic;
 
 namespace Ryujinx.HLE.HOS.Services.Pctl
@@ -18,7 +19,8 @@ namespace Ryujinx.HLE.HOS.Services.Pctl
         {
             _commands = new Dictionary<int, ServiceProcessRequest>
             {
-                { 1, Initialize }
+                { 1,    Initialize                       },
+                { 1001, CheckFreeCommunicationPermission }
             };
 
             _needInitialize = needInitialize;
@@ -37,5 +39,12 @@ namespace Ryujinx.HLE.HOS.Services.Pctl
 
             return 0;
         }
+
+        public long CheckFreeCommunicationPermission(ServiceCtx context)
+        {
+            Logger.PrintStub(LogClass.ServicePctl);
+
+            return 0;
+        }
     }
 }