mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-24 15:37:10 +02:00
Use GetBufferType0x21 on TransactParcelAuto aswell
This commit is contained in:
parent
250e2084f4
commit
e7efee7909
3 changed files with 14 additions and 10 deletions
|
@ -48,16 +48,12 @@ 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;
|
||||
(long DataPos, long DataSize) = Context.Request.GetBufferType0x21();
|
||||
|
||||
byte[] Data = AMemoryHelper.ReadBytes(Context.Memory, DataPos, DataSize);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue