From c8cecf27d9b594bb8b8e8402d81957b820f9ccec Mon Sep 17 00:00:00 2001 From: gdkchan Date: Mon, 7 May 2018 15:38:57 -0300 Subject: [PATCH] Remove now unused code, add comment about probably wrong result codes --- Ryujinx.Core/OsHle/Ipc/IpcMessage.cs | 25 ------------------- .../OsHle/Services/Nv/INvDrvServices.cs | 1 + 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/Ryujinx.Core/OsHle/Ipc/IpcMessage.cs b/Ryujinx.Core/OsHle/Ipc/IpcMessage.cs index d81f44bd9b..afcbb3a439 100644 --- a/Ryujinx.Core/OsHle/Ipc/IpcMessage.cs +++ b/Ryujinx.Core/OsHle/Ipc/IpcMessage.cs @@ -174,31 +174,6 @@ namespace Ryujinx.Core.OsHle.Ipc return 0; } - public long GetSendBuffPtr() - { - if (SendBuff.Count > 0 && SendBuff[0].Size != 0) - { - return SendBuff[0].Position; - } - - if (PtrBuff.Count > 0 && PtrBuff[0].Size != 0) - { - return PtrBuff[0].Position; - } - - if (ReceiveBuff.Count > 0 && ReceiveBuff[0].Size != 0) - { - return ReceiveBuff[0].Position; - } - - if (RecvListBuff.Count > 0 && RecvListBuff[0].Size != 0) - { - return RecvListBuff[0].Position; - } - - return -1; - } - public long GetBufferType0x21Position() { if (PtrBuff.Count > 0 && PtrBuff[0].Position != 0) diff --git a/Ryujinx.Core/OsHle/Services/Nv/INvDrvServices.cs b/Ryujinx.Core/OsHle/Services/Nv/INvDrvServices.cs index aca171b412..00209f9db7 100644 --- a/Ryujinx.Core/OsHle/Services/Nv/INvDrvServices.cs +++ b/Ryujinx.Core/OsHle/Services/Nv/INvDrvServices.cs @@ -86,6 +86,7 @@ namespace Ryujinx.Core.OsHle.Services.Nv throw new NotImplementedException($"{FdData.Name} {Cmd:x4}"); } + //TODO: Verify if the error codes needs to be translated. Context.ResponseData.Write(Result); return 0;