mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 17:21:15 +01:00
misc: Use nint/nuint instead of IntPtr/UIntPtr
This commit is contained in:
1 parent
90cb9d42db
commit
2c50fbcc1f
163 files changed
+844
-844
No files matched your search
@@ -7,7 +7,7 @@ namespace Ryujinx.Tests.Memory
|
||||
{
|
||||
public int AddressSpaceBits => throw new NotImplementedException();
|
||||
|
||||
public IntPtr PageTablePointer => throw new NotImplementedException();
|
||||
public nint PageTablePointer => throw new NotImplementedException();
|
||||
|
||||
public MemoryManagerType Type => MemoryManagerType.HostMappedUnsafe;
|
||||
|
||||
|
||||
@@ -243,7 +243,7 @@ namespace Ryujinx.Tests.Memory
|
||||
mainMemory.MapView(backing, 0, 0, vaSize);
|
||||
|
||||
var writeFunc = TestMethods.GenerateDebugNativeWriteLoop();
|
||||
IntPtr writePtr = mainMemory.GetPointer(vaSize - 0x1000, 4);
|
||||
nint writePtr = mainMemory.GetPointer(vaSize - 0x1000, 4);
|
||||
|
||||
Thread testThread = new(() =>
|
||||
{
|
||||
@@ -336,7 +336,7 @@ namespace Ryujinx.Tests.Memory
|
||||
|
||||
fixed (void* localMap = &state.LocalCounts)
|
||||
{
|
||||
var getOrReserve = TestMethods.GenerateDebugThreadLocalMapGetOrReserve((IntPtr)localMap);
|
||||
var getOrReserve = TestMethods.GenerateDebugThreadLocalMapGetOrReserve((nint)localMap);
|
||||
|
||||
for (int i = 0; i < ThreadLocalMap<int>.MapSize; i++)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user