mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2024-12-23 05:05:27 +00:00
Added binding to SDL_GetSystemRAM() in SDL_cpuinfo.h
This commit is contained in:
parent
1459270321
commit
29372e5fa4
12
src/SDL2.cs
12
src/SDL2.cs
|
@ -3794,6 +3794,7 @@ namespace SDL2
|
|||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region SDL_keycode.h
|
||||
|
||||
public const int SDLK_SCANCODE_MASK = (1 << 30);
|
||||
|
@ -5310,5 +5311,16 @@ namespace SDL2
|
|||
);
|
||||
|
||||
#endregion
|
||||
|
||||
#region SDL_cpuinfo.h
|
||||
|
||||
/// <summary>
|
||||
/// This function returns the amount of RAM configured in the system, in MB.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern int SDL_GetSystemRAM();
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue