mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-02 05:16:25 +02:00
Replacing 'Assembly.GetExecutingAssembly()' with 'Type.Assembly' (#5545)
This commit is contained in:
parent
ddb6493896
commit
210f475484
4 changed files with 8 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue