2018-02-25 05:34:16 +01:00
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Acc;
|
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Am;
|
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Apm;
|
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Aud;
|
2018-02-28 04:31:52 +01:00
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Bsd;
|
2018-02-25 05:34:16 +01:00
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Friend;
|
|
|
|
using Ryujinx.Core.OsHle.IpcServices.FspSrv;
|
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Hid;
|
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Lm;
|
2018-02-28 04:31:52 +01:00
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Nifm;
|
2018-02-25 19:58:16 +01:00
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Ns;
|
2018-02-25 05:34:16 +01:00
|
|
|
using Ryujinx.Core.OsHle.IpcServices.NvServices;
|
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Pctl;
|
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Pl;
|
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Set;
|
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Sm;
|
2018-02-28 04:31:52 +01:00
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Ssl;
|
2018-02-25 05:34:16 +01:00
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Time;
|
|
|
|
using Ryujinx.Core.OsHle.IpcServices.Vi;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace Ryujinx.Core.OsHle.IpcServices
|
|
|
|
{
|
|
|
|
static class ServiceFactory
|
|
|
|
{
|
|
|
|
public static IIpcService MakeService(string Name)
|
|
|
|
{
|
|
|
|
switch (Name)
|
|
|
|
{
|
|
|
|
case "acc:u0": return new ServiceAcc();
|
2018-02-25 19:58:16 +01:00
|
|
|
case "aoc:u": return new ServiceNs();
|
2018-02-25 05:34:16 +01:00
|
|
|
case "apm": return new ServiceApm();
|
|
|
|
case "apm:p": return new ServiceApm();
|
|
|
|
case "appletOE": return new ServiceAppletOE();
|
|
|
|
case "audout:u": return new ServiceAudOut();
|
|
|
|
case "audren:u": return new ServiceAudRen();
|
2018-02-28 04:31:52 +01:00
|
|
|
case "bsd:u": return new ServiceBsd();
|
2018-02-25 05:34:16 +01:00
|
|
|
case "friend:a": return new ServiceFriend();
|
|
|
|
case "fsp-srv": return new ServiceFspSrv();
|
|
|
|
case "hid": return new ServiceHid();
|
|
|
|
case "lm": return new ServiceLm();
|
2018-02-28 04:31:52 +01:00
|
|
|
case "nifm:u": return new ServiceNifm();
|
2018-02-25 05:34:16 +01:00
|
|
|
case "nvdrv": return new ServiceNvDrv();
|
|
|
|
case "nvdrv:a": return new ServiceNvDrv();
|
|
|
|
case "pctl:a": return new ServicePctl();
|
|
|
|
case "pl:u": return new ServicePl();
|
|
|
|
case "set": return new ServiceSet();
|
|
|
|
case "sm:": return new ServiceSm();
|
2018-02-28 04:31:52 +01:00
|
|
|
case "ssl": return new ServiceSsl();
|
2018-02-25 05:34:16 +01:00
|
|
|
case "time:s": return new ServiceTime();
|
|
|
|
case "time:u": return new ServiceTime();
|
|
|
|
case "vi:m": return new ServiceVi();
|
2018-02-25 19:58:16 +01:00
|
|
|
case "vi:s": return new ServiceVi();
|
|
|
|
case "vi:u": return new ServiceVi();
|
2018-02-25 05:34:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
throw new NotImplementedException(Name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|