aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/IpcService.cs
diff options
context:
space:
mode:
authorMarco Carvalho <marcolucio27@gmail.com>2023-09-07 09:10:58 -0300
committerGitHub <noreply@github.com>2023-09-07 14:10:58 +0200
commit210f4754849bf147a584695c0cced9d14c905f8e (patch)
tree345d861652453f7a225f9a9c19cbcd5e8072db17 /src/Ryujinx.HLE/HOS/Services/IpcService.cs
parentddb64938968db5aa2a973604cf761f44c99d1c3d (diff)
Replacing 'Assembly.GetExecutingAssembly()' with 'Type.Assembly' (#5545)1.1.1010
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Services/IpcService.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Services/IpcService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/IpcService.cs b/src/Ryujinx.HLE/HOS/Services/IpcService.cs
index eb9f6b2f..808f21c0 100644
--- a/src/Ryujinx.HLE/HOS/Services/IpcService.cs
+++ b/src/Ryujinx.HLE/HOS/Services/IpcService.cs
@@ -23,14 +23,14 @@ namespace Ryujinx.HLE.HOS.Services
public IpcService(ServerBase server = null)
{
- CmifCommands = Assembly.GetExecutingAssembly().GetTypes()
+ CmifCommands = typeof(IpcService).Assembly.GetTypes()
.Where(type => type == GetType())
.SelectMany(type => type.GetMethods(BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public))
.SelectMany(methodInfo => methodInfo.GetCustomAttributes(typeof(CommandCmifAttribute))
.Select(command => (((CommandCmifAttribute)command).Id, methodInfo)))
.ToDictionary(command => command.Id, command => command.methodInfo);
- TipcCommands = Assembly.GetExecutingAssembly().GetTypes()
+ TipcCommands = typeof(IpcService).Assembly.GetTypes()
.Where(type => type == GetType())
.SelectMany(type => type.GetMethods(BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public))
.SelectMany(methodInfo => methodInfo.GetCustomAttributes(typeof(CommandTipcAttribute))