mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-19 16:51:53 +00:00
SDL2: use SDL_GetSystemRAM() to get total RAM
This commit is contained in:
parent
c99e29b74f
commit
f694529727
1 changed files with 6 additions and 0 deletions
|
@ -3239,7 +3239,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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue