aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/OsHle/Services/Vi
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2018-04-21 23:04:43 +0000
committergdkchan <gab.dark.100@gmail.com>2018-04-21 20:04:43 -0300
commit4906acdde96c09b4e12a3801a4bacd5233a2f8e6 (patch)
treef1ecba22f4c44c2b50b86904fe4f784e5e520cf1 /Ryujinx.Core/OsHle/Services/Vi
parent434e40b8a07a2a350d72581e41e313213ee25663 (diff)
Some implementations (#99)
* Some implementations - ICommonStateGetter * GetBootMode - ISelfController * SetHandlesRequestToDisplay - IServiceGetterInterface - ISystemUpdateInterface - IVulnerabilityManagerInterface - IPrepoService - ISettingsServer * GetLanguageCode - ISystemSettingsServer * GetFirmwareVersion2 - IHOSBinderDriver * TransactParcelAuto * Fix Implementations * Fix Implementations 2
Diffstat (limited to 'Ryujinx.Core/OsHle/Services/Vi')
-rw-r--r--Ryujinx.Core/OsHle/Services/Vi/IHOSBinderDriver.cs25
1 files changed, 22 insertions, 3 deletions
diff --git a/Ryujinx.Core/OsHle/Services/Vi/IHOSBinderDriver.cs b/Ryujinx.Core/OsHle/Services/Vi/IHOSBinderDriver.cs
index b1b7a268..72e8ef19 100644
--- a/Ryujinx.Core/OsHle/Services/Vi/IHOSBinderDriver.cs
+++ b/Ryujinx.Core/OsHle/Services/Vi/IHOSBinderDriver.cs
@@ -22,9 +22,10 @@ namespace Ryujinx.Core.OsHle.Services.Vi
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
- { 0, TransactParcel },
- { 1, AdjustRefcount },
- { 2, GetNativeHandle }
+ { 0, TransactParcel },
+ { 1, AdjustRefcount },
+ { 2, GetNativeHandle },
+ { 3, TransactParcelAuto }
};
ReleaseEvent = new KEvent();
@@ -47,6 +48,24 @@ namespace Ryujinx.Core.OsHle.Services.Vi
return Flinger.ProcessParcelRequest(Context, Data, Code);
}
+ //TransactParcelAuto(i32, u32, u32, buffer<unknown, 0x21, 0>) -> buffer<unknown, 0x22, 0>
+ //Buffer C (PtrBuff) and X (ReceiveListBuff) can be used here...
+ //But they are all null during all my tests.
+ public long TransactParcelAuto(ServiceCtx Context)
+ {
+ int Id = Context.RequestData.ReadInt32();
+ int Code = Context.RequestData.ReadInt32();
+
+ long DataPos = Context.Request.SendBuff[0].Position;
+ long DataSize = Context.Request.SendBuff[0].Size;
+
+ byte[] Data = AMemoryHelper.ReadBytes(Context.Memory, DataPos, DataSize);
+
+ Data = Parcel.GetParcelData(Data);
+
+ return Flinger.ProcessParcelRequest(Context, Data, Code);
+ }
+
public long AdjustRefcount(ServiceCtx Context)
{
int Id = Context.RequestData.ReadInt32();