mirror of
https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
synced 2025-12-17 12:12:41 +00:00
IPC: Make DuplicateSession return the Domain instead of the Session if the request was made on a Domain interface.
This commit is contained in:
@@ -23,7 +23,11 @@ void Controller::ConvertSessionToDomain(Kernel::HLERequestContext& ctx) {
|
||||
void Controller::DuplicateSession(Kernel::HLERequestContext& ctx) {
|
||||
IPC::RequestBuilder rb{ctx, 2, 0, 1};
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
rb.PushMoveObjects(ctx.ServerSession());
|
||||
// TODO(Subv): Check if this is correct
|
||||
if (ctx.IsDomain())
|
||||
rb.PushMoveObjects(ctx.Domain());
|
||||
else
|
||||
rb.PushMoveObjects(ctx.ServerSession());
|
||||
|
||||
LOG_DEBUG(Service, "called");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user