mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-18 15:30:05 +00:00
kernel/svc: Add request registering
All necessary objects are available here, making this a great place for the registering part.
This commit is contained in:
parent
b093d39a27
commit
cb0bd6530c
@ -387,7 +387,13 @@ ResultCode SVC::SendSyncRequest(Handle handle) {
|
|||||||
|
|
||||||
system.PrepareReschedule();
|
system.PrepareReschedule();
|
||||||
|
|
||||||
return session->SendSyncRequest(SharedFrom(kernel.GetThreadManager().GetCurrentThread()));
|
auto thread = SharedFrom(kernel.GetThreadManager().GetCurrentThread());
|
||||||
|
|
||||||
|
if (kernel.GetIPCRecorder().IsEnabled()) {
|
||||||
|
kernel.GetIPCRecorder().RegisterRequest(session, thread);
|
||||||
|
}
|
||||||
|
|
||||||
|
return session->SendSyncRequest(thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Close a handle
|
/// Close a handle
|
||||||
|
Loading…
Reference in New Issue
Block a user