mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-08-02 10:47:11 +02:00
Move WriteBytes to AMemory, implement it with a Marshal copy like ReadBytes, fix regression on address range checking
This commit is contained in:
parent
91420a402c
commit
7f5a8effbb
15 changed files with 73 additions and 77 deletions
|
@ -1,4 +1,3 @@
|
|||
using ChocolArm64.Memory;
|
||||
using Ryujinx.Core.OsHle.Ipc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
@ -78,7 +77,7 @@ namespace Ryujinx.Core.OsHle.Services.FspSrv
|
|||
|
||||
byte[] NameBuffer = Encoding.UTF8.GetBytes(Path.GetFileName(FullPath));
|
||||
|
||||
AMemoryHelper.WriteBytes(Context.Memory, Position, NameBuffer);
|
||||
Context.Memory.WriteBytes(Position, NameBuffer);
|
||||
|
||||
int Type = 0;
|
||||
long Size = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue