Resolve nits
This commit is contained in:
parent
0291b1cf47
commit
e4a0dc42fc
3 changed files with 13 additions and 10 deletions
|
@ -9,14 +9,15 @@ namespace Ryujinx.HLE.HOS.Applets
|
|||
|
||||
static AppletManager()
|
||||
{
|
||||
_appletMapping = new Dictionary<AppletId, Type> {
|
||||
_appletMapping = new Dictionary<AppletId, Type>
|
||||
{
|
||||
{ AppletId.PlayerSelect, typeof(PlayerSelect) }
|
||||
};
|
||||
}
|
||||
|
||||
public static IApplet Create(AppletId applet, Horizon system)
|
||||
{
|
||||
if(_appletMapping.TryGetValue(applet, out Type appletClass))
|
||||
if (_appletMapping.TryGetValue(applet, out Type appletClass))
|
||||
{
|
||||
return (IApplet)Activator.CreateInstance(appletClass, system);
|
||||
}
|
||||
|
|
|
@ -8,21 +8,21 @@ namespace Ryujinx.HLE.HOS.Applets
|
|||
internal class PlayerSelect : IApplet
|
||||
{
|
||||
private Horizon _system;
|
||||
private Stack<IStorage> _inputStack;
|
||||
private Stack<IStorage> _outputStack;
|
||||
private Queue<IStorage> _inputStack;
|
||||
private Queue<IStorage> _outputStack;
|
||||
|
||||
public event EventHandler AppletStateChanged;
|
||||
|
||||
public PlayerSelect(Horizon system)
|
||||
{
|
||||
_system = system;
|
||||
_inputStack = new Stack<IStorage>();
|
||||
_outputStack = new Stack<IStorage>();
|
||||
_inputStack = new Queue<IStorage>();
|
||||
_outputStack = new Queue<IStorage>();
|
||||
}
|
||||
|
||||
public ResultCode Start()
|
||||
{
|
||||
_outputStack.Push(new IStorage(BuildResponse()));
|
||||
_outputStack.Enqueue(new IStorage(BuildResponse()));
|
||||
|
||||
AppletStateChanged?.Invoke(this, null);
|
||||
|
||||
|
@ -36,7 +36,7 @@ namespace Ryujinx.HLE.HOS.Applets
|
|||
|
||||
public ResultCode PushInData(IStorage data)
|
||||
{
|
||||
_inputStack.Push(data);
|
||||
_inputStack.Enqueue(data);
|
||||
|
||||
return ResultCode.Success;
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ namespace Ryujinx.HLE.HOS.Applets
|
|||
{
|
||||
if (_outputStack.Count > 0)
|
||||
{
|
||||
data = _outputStack.Pop();
|
||||
data = _outputStack.Dequeue();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
using Ryujinx.HLE.HOS.Applets;
|
||||
using Ryujinx.Common.Logging;
|
||||
using Ryujinx.HLE.HOS.Applets;
|
||||
using Ryujinx.HLE.HOS.Ipc;
|
||||
using Ryujinx.HLE.HOS.Kernel.Common;
|
||||
using Ryujinx.HLE.HOS.Kernel.Threading;
|
||||
using System;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.LibraryAppletCreator
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue