aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Memory
diff options
context:
space:
mode:
authorjhorv <38920027+jhorv@users.noreply.github.com>2024-04-21 15:34:04 -0400
committerGitHub <noreply@github.com>2024-04-21 16:34:04 -0300
commit9b94662b4bb2ebf846e1baf45ba8097fcd7da684 (patch)
tree2aa80e567d0c7b3828466b2888daa02039b1e4cc /src/Ryujinx.Memory
parent216026c096d844f8bf09ee0e185dec4111c64095 (diff)
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
Diffstat (limited to 'src/Ryujinx.Memory')
-rw-r--r--src/Ryujinx.Memory/NativeMemoryManager.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Ryujinx.Memory/NativeMemoryManager.cs b/src/Ryujinx.Memory/NativeMemoryManager.cs
index 9ca63293..cb8d5c24 100644
--- a/src/Ryujinx.Memory/NativeMemoryManager.cs
+++ b/src/Ryujinx.Memory/NativeMemoryManager.cs
@@ -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;