0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-22 23:55:47 +00:00

Update IpcService.cs (#734)

Remove `BindingFlags.NonPublic` Flag
This commit is contained in:
Ac_K 2019-07-14 23:30:47 +02:00 committed by Thomas Guillemard
parent d5cc919369
commit d8424a63c6

View file

@ -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);