aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.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/Sm/IUserInterface.cs
parentddb64938968db5aa2a973604cf761f44c99d1c3d (diff)
Replacing 'Assembly.GetExecutingAssembly()' with 'Type.Assembly' (#5545)
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs b/src/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs
index 2d850220..9110d06d 100644
--- a/src/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs
+++ b/src/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs
@@ -28,7 +28,7 @@ namespace Ryujinx.HLE.HOS.Services.Sm
static IUserInterface()
{
- _services = Assembly.GetExecutingAssembly().GetTypes()
+ _services = typeof(IUserInterface).Assembly.GetTypes()
.SelectMany(type => type.GetCustomAttributes(typeof(ServiceAttribute), true)
.Select(service => (((ServiceAttribute)service).Name, type)))
.ToDictionary(service => service.Name, service => service.type);