SDL2: use SDL_GetSystemRAM() to get total RAM

This commit is contained in:
Alam Ed Arias authored and Alug committed 2025-09-25 16:06:13 +02:00
1 parent 73dfacd416
commit 7804dbebd8
1 file changed
+6
+6
View File
@@ -2696,7 +2696,13 @@ size_t I_GetFreeMem(size_t *total)
#else
// Guess 48 MB.
if (total)
{
#if SDL_VERSION_ATLEAST(2,0,1)
*total = SDL_GetSystemRAM();
#else
*total = 48<<20;
#endif
}
return 48<<20;
#endif
}