From 29372e5fa4972b5045ca0fa56ad10b799f84eab2 Mon Sep 17 00:00:00 2001 From: Justin Skiles Date: Tue, 22 Oct 2013 19:28:34 -0400 Subject: [PATCH 1/2] Added binding to SDL_GetSystemRAM() in SDL_cpuinfo.h --- src/SDL2.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index a4587c4..5079ded 100644 --- a/src/SDL2.cs +++ b/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 + + /// + /// This function returns the amount of RAM configured in the system, in MB. + /// + /// + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern int SDL_GetSystemRAM(); + + #endregion } } From 861f5b3df6f206db48529b85c7223ffccb235212 Mon Sep 17 00:00:00 2001 From: Justin Skiles Date: Tue, 22 Oct 2013 20:15:27 -0400 Subject: [PATCH 2/2] Fixed trailing space on line 3797. --- src/SDL2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDL2.cs b/src/SDL2.cs index 5079ded..3c3495f 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -3794,7 +3794,7 @@ namespace SDL2 } #endregion - + #region SDL_keycode.h public const int SDLK_SCANCODE_MASK = (1 << 30);