mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 11:06:24 +02:00
misc: Replace references to IntPtr/UIntPtr with nint/nuint + code cleanups.
This commit is contained in:
parent
a09d314817
commit
dfb4854d19
172 changed files with 902 additions and 914 deletions
|
@ -15,14 +15,14 @@ namespace Ryujinx.Graphics.OpenGL.Helper
|
|||
{
|
||||
if (name != LibraryName)
|
||||
{
|
||||
return IntPtr.Zero;
|
||||
return nint.Zero;
|
||||
}
|
||||
|
||||
if (!NativeLibrary.TryLoad("libGL.so.1", assembly, path, out IntPtr result))
|
||||
if (!NativeLibrary.TryLoad("libGL.so.1", assembly, path, out nint result))
|
||||
{
|
||||
if (!NativeLibrary.TryLoad("libGL.so", assembly, path, out result))
|
||||
{
|
||||
return IntPtr.Zero;
|
||||
return nint.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -31,6 +31,6 @@ namespace Ryujinx.Graphics.OpenGL.Helper
|
|||
}
|
||||
|
||||
[LibraryImport(LibraryName, EntryPoint = "glXGetCurrentContext")]
|
||||
public static partial IntPtr GetCurrentContext();
|
||||
public static partial nint GetCurrentContext();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@ namespace Ryujinx.Graphics.OpenGL.Helper
|
|||
private const string LibraryName = "OPENGL32.DLL";
|
||||
|
||||
[LibraryImport(LibraryName, EntryPoint = "wglGetCurrentContext")]
|
||||
public static partial IntPtr GetCurrentContext();
|
||||
public static partial nint GetCurrentContext();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue