forked from MeloNX/MeloNX
35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
using Ryujinx.HLE.HOS.Applets.Browser;
|
|
using Ryujinx.HLE.HOS.Applets.Error;
|
|
using Ryujinx.HLE.HOS.Services.Am.AppletAE;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Ryujinx.HLE.HOS.Applets
|
|
{
|
|
static class AppletManager
|
|
{
|
|
public static IApplet Create(AppletId applet, Horizon system)
|
|
{
|
|
switch (applet)
|
|
{
|
|
case AppletId.Controller:
|
|
return new ControllerApplet(system);
|
|
case AppletId.Error:
|
|
return new ErrorApplet(system);
|
|
case AppletId.PlayerSelect:
|
|
return new PlayerSelectApplet(system);
|
|
case AppletId.SoftwareKeyboard:
|
|
return new SoftwareKeyboardApplet(system);
|
|
case AppletId.LibAppletWeb:
|
|
return new BrowserApplet(system);
|
|
case AppletId.LibAppletShop:
|
|
return new BrowserApplet(system);
|
|
case AppletId.LibAppletOff:
|
|
return new BrowserApplet(system);
|
|
}
|
|
|
|
throw new NotImplementedException($"{applet} applet is not implemented.");
|
|
}
|
|
}
|
|
}
|