aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Ngc/NgcMain.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Horizon/Ngc/NgcMain.cs')
-rw-r--r--src/Ryujinx.Horizon/Ngc/NgcMain.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Ryujinx.Horizon/Ngc/NgcMain.cs b/src/Ryujinx.Horizon/Ngc/NgcMain.cs
new file mode 100644
index 00000000..1a584d66
--- /dev/null
+++ b/src/Ryujinx.Horizon/Ngc/NgcMain.cs
@@ -0,0 +1,21 @@
+namespace Ryujinx.Horizon.Ngc
+{
+ class NgcMain : IService
+ {
+ public static void Main(ServiceTable serviceTable)
+ {
+ NgcIpcServer ipcServer = new();
+
+ ipcServer.Initialize(HorizonStatic.Options.FsClient);
+
+ // TODO: Notification thread, requires implementing OpenSystemDataUpdateEventNotifier on FS.
+ // The notification thread seems to wait until the event returned by OpenSystemDataUpdateEventNotifier is signalled
+ // in a loop. When it receives the signal, it calls ContentsReader.Reload and then waits for the next signal.
+
+ serviceTable.SignalServiceReady();
+
+ ipcServer.ServiceRequests();
+ ipcServer.Shutdown();
+ }
+ }
+}