implement MemoryManagerHostTracked.GetReadOnlySequence() (#6695)

* implement `MemoryManagerHostTracked.GetReadOnlySequence()`, fixes crashes on game starts on MacOS

* whitespace fixes

* whitespace fixes

* add missing call to `SignalMemoryTracking()`

* adjust call to `SignalMemoryTracking()``

* don't use GetPhysicalAddressMemory()

* add newline for consistency
This commit is contained in:
jhorv
2024-04-21 15:34:04 -04:00
committed by GitHub
parent 216026c096
commit 9b94662b4b
2 changed files with 69 additions and 0 deletions

View File

@ -8,6 +8,11 @@ namespace Ryujinx.Memory
private readonly T* _pointer;
private readonly int _length;
public NativeMemoryManager(nuint pointer, int length)
: this((T*)pointer, length)
{
}
public NativeMemoryManager(T* pointer, int length)
{
_pointer = pointer;