aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Horizon/ServiceTable.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Horizon/ServiceTable.cs')
-rw-r--r--Ryujinx.Horizon/ServiceTable.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/Ryujinx.Horizon/ServiceTable.cs b/Ryujinx.Horizon/ServiceTable.cs
new file mode 100644
index 00000000..933b6a59
--- /dev/null
+++ b/Ryujinx.Horizon/ServiceTable.cs
@@ -0,0 +1,22 @@
+using Ryujinx.Horizon.LogManager;
+using System.Collections.Generic;
+
+namespace Ryujinx.Horizon
+{
+ public static class ServiceTable
+ {
+ public static IEnumerable<ServiceEntry> GetServices(HorizonOptions options)
+ {
+ List<ServiceEntry> entries = new List<ServiceEntry>();
+
+ void RegisterService<T>() where T : IService
+ {
+ entries.Add(new ServiceEntry(T.Main, options));
+ }
+
+ RegisterService<LmMain>();
+
+ return entries;
+ }
+ }
+}