0
0
Fork 0
This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
ryujinx-final/Ryujinx.HLE/HOS/Services/Nifm/StaticService/GeneralService/GeneralServiceManager.cs

30 lines
802 B
C#
Raw Normal View History

using System.Collections.Generic;
using System.Linq;
namespace Ryujinx.HLE.HOS.Services.Nifm.StaticService.GeneralService
{
static class GeneralServiceManager
{
private static List<GeneralServiceDetail> _generalServices = new List<GeneralServiceDetail>();
public static int Count
{
get => _generalServices.Count;
}
public static void Add(GeneralServiceDetail generalServiceDetail)
{
_generalServices.Add(generalServiceDetail);
}
public static void Remove(int index)
{
_generalServices.RemoveAt(index);
}
public static GeneralServiceDetail Get(int clientId)
{
return _generalServices.First(item => item.ClientId == clientId);
}
}
}