ServiceTable.cs 538 B

12345678910111213141516171819202122
  1. using Ryujinx.Horizon.LogManager;
  2. using System.Collections.Generic;
  3. namespace Ryujinx.Horizon
  4. {
  5. public static class ServiceTable
  6. {
  7. public static IEnumerable<ServiceEntry> GetServices(HorizonOptions options)
  8. {
  9. List<ServiceEntry> entries = new List<ServiceEntry>();
  10. void RegisterService<T>() where T : IService
  11. {
  12. entries.Add(new ServiceEntry(T.Main, options));
  13. }
  14. RegisterService<LmMain>();
  15. return entries;
  16. }
  17. }
  18. }