RyuKen/Ryujinx.HLE/HOS/Services
Ac_K 36f62cbe72 friends: INotificationService Implementation of GetEvent (#710)
* friends: INotificationService Implementation of GetEvent

According to the RE, the event isn't signaled when handle is returned.
```C
long nn::friends::detail::service::NotificationService::GetEvent(long this, uint *output_handle)
{
  long inner_struct_event;
  int result;

  if (this->event_created)
  {
    inner_struct_event = &this->event_object;
  }
  else
  {
    inner_struct_event = &this->event_object;
    result = CreateEvent(&this->event_object, 0, 1);

    if ( result )
    {
      Assert();
    }

    this->event_created = true;
  }

  uint event_handle = nn::os::detail::DetachReadableHandleOfInterProcessEvent(inner_struct_event);

  *output_handle = event_handle;
  int unknown = *((char *)output_handle + 4);
  *((char *)output_handle + 4) = 1;

  if (unknown)
  {
    CloseHandle(*output_handle);
  }

  return 0LL;
}
```
Co-Authored-By: Thomas Guillemard <me@thog.eu>
2019-06-27 14:05:30 +02:00
..
Acc Refactoring of acc:u0 (#701) 2019-06-16 00:35:38 +02:00
Am Implement GetAccumulatedSuspendedTickChangedEvent to ISelfController (#702) 2019-06-15 22:58:22 -03:00
Apm Refactor Ryujinx.Common and HLE Stub Logging (#537) 2019-01-11 01:11:46 +01:00
Arp Refactoring of acc:u0 (#701) 2019-06-16 00:35:38 +02:00
Aud Fix GetAudioRendererWorkBufferSize for REV5 (#677) 2019-04-25 00:22:06 +10:00
Bcat Adjust naming conventions and general refactoring in HLE Project (#527) 2018-12-06 09:16:24 -02:00
Bsd Refactor Ryujinx.Common and HLE Stub Logging (#537) 2019-01-11 01:11:46 +01:00
Caps Adjust naming conventions and general refactoring in HLE Project (#527) 2018-12-06 09:16:24 -02:00
Es Adjust naming conventions and general refactoring in HLE Project (#527) 2018-12-06 09:16:24 -02:00
Friend friends: INotificationService Implementation of GetEvent (#710) 2019-06-27 14:05:30 +02:00
FspSrv Implement OutputAccessLogToSdCard and expose an FS access log option (#700) 2019-06-16 03:31:18 +02:00
Hid Refactor Ryujinx.Common and HLE Stub Logging (#537) 2019-01-11 01:11:46 +01:00
Irs Updates to nifm, irs and nvdrv services (#679) 2019-04-25 23:03:00 +10:00
Ldr Refactor SVC handler (#540) 2018-12-18 03:33:36 -02:00
Lm Implement OutputAccessLogToSdCard and expose an FS access log option (#700) 2019-06-16 03:31:18 +02:00
Lr Update to version 0.4 of LibHac (#689) 2019-06-01 02:31:10 +02:00
Mm Refactor Ryujinx.Common and HLE Stub Logging (#537) 2019-01-11 01:11:46 +01:00
Ncm Adjust naming conventions and general refactoring in HLE Project (#527) 2018-12-06 09:16:24 -02:00
Nfp Refactor Ryujinx.Common and HLE Stub Logging (#537) 2019-01-11 01:11:46 +01:00
Nifm Refactor Ryujinx.Common and HLE Stub Logging (#537) 2019-01-11 01:11:46 +01:00
Ns Support HomeBrew Loader (#577) 2019-02-14 11:44:39 +11:00
Nv Extended ignore missing services to INvDrvServices (#674) 2019-04-26 14:54:46 +10:00
Pctl Implement IParentalControlService CheckFreeCommunicationPermission (#665) 2019-04-22 16:54:47 +10:00
Pl Refactor SVC handler (#540) 2018-12-18 03:33:36 -02:00
Pm Support HomeBrew Loader (#577) 2019-02-14 11:44:39 +11:00
Prepo Refactor Ryujinx.Common and HLE Stub Logging (#537) 2019-01-11 01:11:46 +01:00
Psm Improve kernel IPC implementation (#550) 2019-01-18 20:26:39 -02:00
Set set: Improve implementation (#703) 2019-06-16 23:17:37 +02:00
Sfdnsres Refactor Ryujinx.Common and HLE Stub Logging (#537) 2019-01-11 01:11:46 +01:00
Sm Support HomeBrew Loader (#577) 2019-02-14 11:44:39 +11:00
Spl Adjust naming conventions and general refactoring in HLE Project (#527) 2018-12-06 09:16:24 -02:00
Ssl Refactor Ryujinx.Common and HLE Stub Logging (#537) 2019-01-11 01:11:46 +01:00
Time time: Implement GetSharedMemoryNativeHandle (#705) 2019-06-17 01:56:46 +02:00
Vi Add IManagerDisplayService::CreateStrayLayer (#683) 2019-04-26 08:57:18 +10:00
DummyService.cs Config option to ignore missing services (#658) 2019-04-16 09:22:55 +10:00
IIpcService.cs Code style fixes and nits on the HLE project (#355) 2018-08-16 20:47:36 -03:00
IpcService.cs Built in profiling (#567) 2019-04-26 14:53:10 +10:00
ServiceFactory.cs Implement IIrSensorServer GetIrsensorSharedMemoryHandle (#664) 2019-04-20 12:23:13 +10:00