HLE/IPC: pass in kernel & memory reference from parent to avoid global state reference

This commit is contained in:
Weiyi Wang
2019-02-02 15:55:45 -05:00
parent 0a424b86d2
commit 3f86be88f0
4 changed files with 26 additions and 21 deletions

View File

@ -71,7 +71,7 @@ ResultCode ServerSession::HandleSyncRequest(SharedPtr<Thread> thread) {
kernel.memory.ReadBlock(*current_process, thread->GetCommandBufferAddress(), cmd_buf.data(),
cmd_buf.size() * sizeof(u32));
Kernel::HLERequestContext context(this);
Kernel::HLERequestContext context(kernel, this);
context.PopulateFromIncomingCommandBuffer(cmd_buf.data(), *current_process);
hle_handler->HandleSyncRequest(context);