mirror of
https://github.com/PabloMK7/citra.git
synced 2025-10-11 12:00:03 +00:00
hle: Eliminate need to specify command headers for IPC. (#6678)
This commit is contained in:
parent
0bedb28bdc
commit
e043caac27
96 changed files with 2691 additions and 2707 deletions
|
@ -207,6 +207,11 @@ public:
|
|||
return cmd_buf.data();
|
||||
}
|
||||
|
||||
/// Returns the command header from the IPC command buffer.
|
||||
IPC::Header CommandHeader() const {
|
||||
return {cmd_buf[0]};
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the session through which this request was made. This can be used as a map key to
|
||||
* access per-client data on services.
|
||||
|
|
|
@ -100,7 +100,7 @@ void Recorder::SetRequestInfo(const std::shared_ptr<Kernel::Thread>& client_thre
|
|||
|
||||
record.function_name = std::dynamic_pointer_cast<Service::ServiceFrameworkBase>(
|
||||
client_session->parent->port->GetServerPort()->hle_handler)
|
||||
->GetFunctionName(record.untranslated_request_cmdbuf[0]);
|
||||
->GetFunctionName({record.untranslated_request_cmdbuf[0]});
|
||||
}
|
||||
client_session_map.erase(thread_id);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue