/ src / Ryujinx.Horizon / Ngc / NgcMain.cs
NgcMain.cs
 1  namespace Ryujinx.Horizon.Ngc
 2  {
 3      class NgcMain : IService
 4      {
 5          public static void Main(ServiceTable serviceTable)
 6          {
 7              NgcIpcServer ipcServer = new();
 8  
 9              ipcServer.Initialize(HorizonStatic.Options.FsClient);
10  
11              // TODO: Notification thread, requires implementing OpenSystemDataUpdateEventNotifier on FS.
12              // The notification thread seems to wait until the event returned by OpenSystemDataUpdateEventNotifier is signalled
13              // in a loop. When it receives the signal, it calls ContentsReader.Reload and then waits for the next signal.
14  
15              serviceTable.SignalServiceReady();
16  
17              ipcServer.ServiceRequests();
18              ipcServer.Shutdown();
19          }
20      }
21  }