瀏覽代碼

Update IpcService.cs (#734)

Remove `BindingFlags.NonPublic` Flag
Ac_K 6 年之前
父節點
當前提交
d8424a63c6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Ryujinx.HLE/HOS/Services/IpcService.cs

+ 1 - 1
Ryujinx.HLE/HOS/Services/IpcService.cs

@@ -26,7 +26,7 @@ namespace Ryujinx.HLE.HOS.Services
         {
             Commands = Assembly.GetExecutingAssembly().GetTypes()
                 .Where(type => type == GetType())
-                .SelectMany(type => type.GetMethods(BindingFlags.Instance | BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public))
+                .SelectMany(type => type.GetMethods(BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public))
                 .SelectMany(methodInfo => methodInfo.GetCustomAttributes(typeof(CommandAttribute))
                 .Select(command => (((CommandAttribute)command).Id, methodInfo)))
                 .ToDictionary(command => command.Id, command => command.methodInfo);