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
@@ -78,7 +78,7 @@ namespace Ryujinx.Cpu.LightningJit
|
||||
_noWxCache?.ClearEntireThreadLocalCache();
|
||||
}
|
||||
|
||||
internal IntPtr GetOrTranslatePointer(IntPtr framePointer, ulong address, ExecutionMode mode)
|
||||
internal nint GetOrTranslatePointer(nint framePointer, ulong address, ExecutionMode mode)
|
||||
{
|
||||
if (_noWxCache != null)
|
||||
{
|
||||
@@ -121,7 +121,7 @@ namespace Ryujinx.Cpu.LightningJit
|
||||
private TranslatedFunction Translate(ulong address, ExecutionMode mode)
|
||||
{
|
||||
CompiledFunction func = Compile(address, mode);
|
||||
IntPtr funcPointer = JitCache.Map(func.Code);
|
||||
nint funcPointer = JitCache.Map(func.Code);
|
||||
|
||||
return new TranslatedFunction(funcPointer, (ulong)func.GuestCodeLength);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user