1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-11 03:16:41 +00:00
Ryujinx/Ryujinx.HLE/HOS
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
..
Diagnostics/Demangler Adjust naming conventions and general refactoring in HLE Project (#527) 2018-12-06 09:16:24 -02:00
Font Update to version 0.4 of LibHac (#689) 2019-06-01 02:31:10 +02:00
Ipc Print Guest Stack Trace in ServiceNotImplemented Exception (#650) 2019-03-15 14:37:54 +11:00
Kernel Print Guest Stack Trace in ServiceNotImplemented Exception (#650) 2019-03-15 14:37:54 +11:00
Services friends: INotificationService Implementation of GetEvent (#710) 2019-06-27 14:05:30 +02:00
SystemState Refactoring of acc:u0 (#701) 2019-06-16 00:35:38 +02:00
ErrorCode.cs Adjust naming conventions and general refactoring in HLE Project (#527) 2018-12-06 09:16:24 -02:00
ErrorModule.cs Adjust naming conventions and general refactoring in HLE Project (#527) 2018-12-06 09:16:24 -02:00
GlobalStateTable.cs Refactor SVC handler (#540) 2018-12-18 03:33:36 -02:00
Homebrew.cs Adjust naming conventions and general refactoring in HLE Project (#527) 2018-12-06 09:16:24 -02:00
HomebrewRomFsStream.cs Support HomeBrew Loader (#577) 2019-02-14 11:44:39 +11:00
Horizon.cs time: Implement GetSharedMemoryNativeHandle (#705) 2019-06-17 01:56:46 +02:00
IdDictionary.cs Adjust naming conventions and general refactoring in HLE Project (#527) 2018-12-06 09:16:24 -02:00
ProgramLoader.cs Add ARM32 support on the translator (#561) 2019-01-24 23:59:53 -02:00
ServiceCtx.cs Print Guest Stack Trace in ServiceNotImplemented Exception (#650) 2019-03-15 14:37:54 +11:00