From 210f4754849bf147a584695c0cced9d14c905f8e Mon Sep 17 00:00:00 2001 From: Marco Carvalho Date: Thu, 7 Sep 2023 09:10:58 -0300 Subject: Replacing 'Assembly.GetExecutingAssembly()' with 'Type.Assembly' (#5545) --- src/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs') 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); -- cgit v1.2.3