From c9f54aabfb7e5cffe0f384cada09a71c59298e03 Mon Sep 17 00:00:00 2001 From: Ac_K Date: Sun, 25 Feb 2018 00:08:29 +0100 Subject: [PATCH] Update IpcHandler.cs (#39) Temporary Fix by Misson20000 --- Ryujinx.Core/OsHle/Ipc/IpcHandler.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Ryujinx.Core/OsHle/Ipc/IpcHandler.cs b/Ryujinx.Core/OsHle/Ipc/IpcHandler.cs index 612d15eb0f..5785dbf303 100644 --- a/Ryujinx.Core/OsHle/Ipc/IpcHandler.cs +++ b/Ryujinx.Core/OsHle/Ipc/IpcHandler.cs @@ -86,7 +86,7 @@ namespace Ryujinx.Core.OsHle.Ipc long CmdPtr, int HndId) { - IpcMessage Response = new IpcMessage(Request.IsDomain); + IpcMessage Response = new IpcMessage(Request.IsDomain && Request.Type == IpcMessageType.Request); using (MemoryStream Raw = new MemoryStream(Request.RawData)) { @@ -192,6 +192,7 @@ namespace Ryujinx.Core.OsHle.Ipc { case 0: Request = IpcConvertSessionToDomain(Ns, Session, Response, HndId); break; case 3: Request = IpcQueryBufferPointerSize(Response); break; + case 2: //IpcDuplicateSession, differences is unknown. case 4: Request = IpcDuplicateSessionEx(Ns, Session, Response, ReqReader); break; default: throw new NotImplementedException(CmdId.ToString()); @@ -280,4 +281,4 @@ namespace Ryujinx.Core.OsHle.Ipc return Response; } } -} \ No newline at end of file +}