mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-25 04:07:11 +02:00
Make HLE project AOT friendly (#7085)
* add hle service generator remove usage of reflection in device state * remove rd.xml generation * make applet manager reflection free * fix typos * fix encoding * fix style report * remove rogue generator reference * remove double assignment
This commit is contained in:
parent
e0acde04bb
commit
2c5c0392f9
11 changed files with 215 additions and 87 deletions
|
@ -2,6 +2,7 @@ using Ryujinx.Common.Logging;
|
|||
using Ryujinx.HLE.HOS.Ipc;
|
||||
using Ryujinx.HLE.HOS.Kernel;
|
||||
using Ryujinx.HLE.HOS.Kernel.Ipc;
|
||||
using Ryujinx.HLE.HOS.Services.Apm;
|
||||
using Ryujinx.Horizon.Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
@ -12,7 +13,7 @@ using System.Text;
|
|||
|
||||
namespace Ryujinx.HLE.HOS.Services.Sm
|
||||
{
|
||||
class IUserInterface : IpcService
|
||||
partial class IUserInterface : IpcService
|
||||
{
|
||||
private static readonly Dictionary<string, Type> _services;
|
||||
|
||||
|
@ -95,9 +96,7 @@ namespace Ryujinx.HLE.HOS.Services.Sm
|
|||
{
|
||||
ServiceAttribute serviceAttribute = (ServiceAttribute)type.GetCustomAttributes(typeof(ServiceAttribute)).First(service => ((ServiceAttribute)service).Name == name);
|
||||
|
||||
IpcService service = serviceAttribute.Parameter != null
|
||||
? (IpcService)Activator.CreateInstance(type, context, serviceAttribute.Parameter)
|
||||
: (IpcService)Activator.CreateInstance(type, context);
|
||||
IpcService service = GetServiceInstance(type, context, serviceAttribute.Parameter);
|
||||
|
||||
service.TrySetServer(_commonServer);
|
||||
service.Server.AddSessionObj(session.ServerSession, service);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue