mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-27 21:35:19 +00:00
sys_event: remove unnecessary copy
This commit is contained in:
parent
dc700ad620
commit
fcac6a9322
@ -420,10 +420,8 @@ error_code sys_event_queue_tryreceive(ppu_thread& ppu, u32 equeue_id, vm::ptr<sy
|
||||
while (count < size && !queue->events.empty())
|
||||
{
|
||||
auto& dest = events[count++];
|
||||
const auto event = queue->events.front();
|
||||
std::tie(dest.source, dest.data1, dest.data2, dest.data3) = queue->events.front();
|
||||
queue->events.pop_front();
|
||||
|
||||
std::tie(dest.source, dest.data1, dest.data2, dest.data3) = event;
|
||||
}
|
||||
|
||||
lock.unlock();
|
||||
|
@ -271,7 +271,7 @@ error_code _sys_process_get_paramsfo(vm::ptr<char> buffer)
|
||||
{
|
||||
sys_process.warning("_sys_process_get_paramsfo(buffer=0x%x)", buffer);
|
||||
|
||||
if (!Emu.GetTitleID().length())
|
||||
if (Emu.GetTitleID().empty())
|
||||
{
|
||||
return CELL_ENOENT;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user