2018-03-20 21:00:00 +01:00
|
|
|
using Ryujinx.Core.OsHle.Services.Acc;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Am;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Apm;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Aud;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Bsd;
|
2018-04-22 06:21:49 +02:00
|
|
|
using Ryujinx.Core.OsHle.Services.Caps;
|
2018-03-20 21:00:00 +01:00
|
|
|
using Ryujinx.Core.OsHle.Services.Friend;
|
|
|
|
using Ryujinx.Core.OsHle.Services.FspSrv;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Hid;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Lm;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Ns;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Nv;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Pctl;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Pl;
|
2018-04-22 01:04:43 +02:00
|
|
|
using Ryujinx.Core.OsHle.Services.Prepo;
|
2018-03-20 21:00:00 +01:00
|
|
|
using Ryujinx.Core.OsHle.Services.Set;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Sfdnsres;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Sm;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Ssl;
|
|
|
|
using Ryujinx.Core.OsHle.Services.Vi;
|
2018-03-19 19:58:46 +01:00
|
|
|
using System;
|
|
|
|
|
2018-03-20 21:00:00 +01:00
|
|
|
namespace Ryujinx.Core.OsHle.Services
|
2018-03-19 19:58:46 +01:00
|
|
|
{
|
|
|
|
static class ServiceFactory
|
|
|
|
{
|
|
|
|
public static IpcService MakeService(string Name)
|
|
|
|
{
|
|
|
|
switch (Name)
|
|
|
|
{
|
|
|
|
case "acc:u0":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IAccountServiceForApplication();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "aoc:u":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IAddOnContentManager();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "apm":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IManager();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "apm:p":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IManager();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
2018-04-21 21:30:06 +02:00
|
|
|
case "appletAE":
|
|
|
|
return new IAllSystemAppletProxiesService();
|
2018-04-22 01:04:43 +02:00
|
|
|
|
2018-03-19 19:58:46 +01:00
|
|
|
case "appletOE":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IApplicationProxyService();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "audout:u":
|
2018-03-22 00:30:10 +01:00
|
|
|
return new IAudioOutManager();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "audren:u":
|
2018-03-22 00:30:10 +01:00
|
|
|
return new IAudioRendererManager();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "bsd:s":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IClient();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "bsd:u":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IClient();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
2018-04-22 06:21:49 +02:00
|
|
|
case "caps:a":
|
|
|
|
return new IAlbumAccessorService();
|
|
|
|
|
|
|
|
case "caps:ss":
|
|
|
|
return new IScreenshotService();
|
|
|
|
|
2018-03-19 19:58:46 +01:00
|
|
|
case "friend:a":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IServiceCreator();
|
2018-04-22 06:21:49 +02:00
|
|
|
|
|
|
|
case "friend:u":
|
|
|
|
return new IServiceCreator();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "fsp-srv":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IFileSystemProxy();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "hid":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IHidServer();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "lm":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new ILogService();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "nifm:u":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new Nifm.IStaticService();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
2018-04-22 01:04:43 +02:00
|
|
|
case "ns:ec":
|
|
|
|
return new IServiceGetterInterface();
|
|
|
|
|
|
|
|
case "ns:su":
|
|
|
|
return new ISystemUpdateInterface();
|
|
|
|
|
|
|
|
case "ns:vm":
|
|
|
|
return new IVulnerabilityManagerInterface();
|
|
|
|
|
2018-03-19 19:58:46 +01:00
|
|
|
case "nvdrv":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new INvDrvServices();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "nvdrv:a":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new INvDrvServices();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
2018-05-25 23:33:09 +02:00
|
|
|
case "pctl:s":
|
|
|
|
return new IParentalControlServiceFactory();
|
|
|
|
|
|
|
|
case "pctl:r":
|
|
|
|
return new IParentalControlServiceFactory();
|
|
|
|
|
2018-03-19 19:58:46 +01:00
|
|
|
case "pctl:a":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IParentalControlServiceFactory();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
2018-05-25 23:33:09 +02:00
|
|
|
case "pctl":
|
|
|
|
return new IParentalControlServiceFactory();
|
|
|
|
|
2018-03-19 19:58:46 +01:00
|
|
|
case "pl:u":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new ISharedFontManager();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
2018-04-24 20:57:39 +02:00
|
|
|
case "prepo:a":
|
|
|
|
return new IPrepoService();
|
|
|
|
|
2018-04-22 01:04:43 +02:00
|
|
|
case "prepo:u":
|
|
|
|
return new IPrepoService();
|
|
|
|
|
2018-03-19 19:58:46 +01:00
|
|
|
case "set":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new ISettingsServer();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "set:sys":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new ISystemSettingsServer();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "sfdnsres":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IResolver();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "sm:":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IUserInterface();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "ssl":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new ISslService();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
2018-04-22 01:04:43 +02:00
|
|
|
case "time:a":
|
|
|
|
return new Time.IStaticService();
|
|
|
|
|
2018-03-19 19:58:46 +01:00
|
|
|
case "time:s":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new Time.IStaticService();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "time:u":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new Time.IStaticService();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "vi:m":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IManagerRootService();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "vi:s":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new ISystemRootService();
|
2018-03-19 19:58:46 +01:00
|
|
|
|
|
|
|
case "vi:u":
|
2018-04-06 06:01:52 +02:00
|
|
|
return new IApplicationRootService();
|
2018-03-19 19:58:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
throw new NotImplementedException(Name);
|
|
|
|
}
|
|
|
|
}
|
2018-05-25 23:33:09 +02:00
|
|
|
}
|