aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Ngc/NgcMain.cs
blob: 1a584d665b710cd63f71edf24dbfd23dc5a32f6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();
        }
    }
}