<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Ryujinx/Ryujinx.HLE/HOS/Services/Friend/FriendErr.cs, branch master</title>
<subtitle>A backup of the Ryujinx master git branch.
</subtitle>
<id>https://git.benis.co.uk/Ryujinx/atom?h=master</id>
<link rel='self' href='https://git.benis.co.uk/Ryujinx/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.benis.co.uk/Ryujinx/'/>
<updated>2019-07-04T15:14:17+00:00</updated>
<entry>
<title> Refactor the friend namespace (#721)</title>
<updated>2019-07-04T15:14:17+00:00</updated>
<author>
<name>Thomas Guillemard</name>
<email>me@thog.eu</email>
</author>
<published>2019-07-04T15:14:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.benis.co.uk/Ryujinx/commit/?id=789cdba8b51f310399752f7a1309e489fadf8dc1'/>
<id>urn:sha1:789cdba8b51f310399752f7a1309e489fadf8dc1</id>
<content type='text'>
* Refactor the friend namespace and UInt128

This commit also:
- Fix GetFriendsList arguments ordering.
- Add GetFriendListIds.
- Expose the permission level of the port instance.
- InvalidUUID =&gt; InvalidArgument

* friend: add all cmds as commments

* add Friend structure layout

* Rename FriendErr to FriendError

* Accurately implement INotificationService

* Fix singleton lock of NotificationEventHandler

* Address comments

* Add comments for IDaemonSuspendSessionService cmds

* Explicitly define the Charset when needed

Also make "Nickname" a string

* Address gdk's comments
</content>
</entry>
<entry>
<title>friends: INotificationService Implementation of GetEvent (#710)</title>
<updated>2019-06-27T12:05:30+00:00</updated>
<author>
<name>Ac_K</name>
<email>Acoustik666@gmail.com</email>
</author>
<published>2019-06-27T12:05:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.benis.co.uk/Ryujinx/commit/?id=36f62cbe72d16c94f0c87fa1712ffff314ab080a'/>
<id>urn:sha1:36f62cbe72d16c94f0c87fa1712ffff314ab080a</id>
<content type='text'>
* 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-&gt;event_created)
  {
    inner_struct_event = &amp;this-&gt;event_object;
  }
  else
  {
    inner_struct_event = &amp;this-&gt;event_object;
    result = CreateEvent(&amp;this-&gt;event_object, 0, 1);

    if ( result )
    {
      Assert();
    }

    this-&gt;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 &lt;me@thog.eu&gt;</content>
</entry>
</feed>
