IPC Cleanup: Remove 3DS-specific code and translate copy, move and domain objects in IPC requests.

Popping objects from the buffer is still not implemented.
This commit is contained in:
Subv 2018-01-07 01:50:55 -05:00 committed by bunnei
parent b0ceb4df70
commit 0368324f79
8 changed files with 116 additions and 403 deletions

View file

@ -24,7 +24,7 @@ void Controller::ConvertSessionToDomain(Kernel::HLERequestContext& ctx) {
void Controller::DuplicateSession(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb{ctx, 1, 0, 1};
rb.Push(RESULT_SUCCESS);
rb.PushObjects(ctx.ServerSession());
rb.PushMoveObjects(ctx.ServerSession());
LOG_DEBUG(Service, "called");
}

View file

@ -121,7 +121,7 @@ void SM::GetService(Kernel::HLERequestContext& ctx) {
(*session)->GetObjectId());
IPC::RequestBuilder rb = rp.MakeBuilder(2, 0, 1);
rb.Push<u64>(0);
rb.PushObjects(std::move(session).Unwrap());
rb.PushMoveObjects(std::move(session).Unwrap());
}
}