mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-11 12:47:51 +02:00
Improve kernel events implementation (#430)
* Improve kernel events implementation * Some cleanup * Address PR feedback
This commit is contained in:

committed by
Thomas Guillemard

parent
54ed9096bd
commit
7de7b559ad
@@ -123,7 +123,10 @@ namespace Ryujinx.HLE.HOS.Services.Nv
|
||||
int EventId = Context.RequestData.ReadInt32();
|
||||
|
||||
//TODO: Use Fd/EventId, different channels have different events.
|
||||
int Handle = Context.Process.HandleTable.OpenHandle(Event);
|
||||
if (Context.Process.HandleTable.GenerateHandle(Event.ReadableEvent, out int Handle) != KernelResult.Success)
|
||||
{
|
||||
throw new InvalidOperationException("Out of handles!");
|
||||
}
|
||||
|
||||
Context.Response.HandleDesc = IpcHandleDesc.MakeCopy(Handle);
|
||||
|
||||
|
Reference in New Issue
Block a user