diff options
Diffstat (limited to 'games/openbor/files/patch-source_ramlib_ram.c')
-rw-r--r-- | games/openbor/files/patch-source_ramlib_ram.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/openbor/files/patch-source_ramlib_ram.c b/games/openbor/files/patch-source_ramlib_ram.c index b4abb51dec7d..d689f496916b 100644 --- a/games/openbor/files/patch-source_ramlib_ram.c +++ b/games/openbor/files/patch-source_ramlib_ram.c @@ -98,9 +98,9 @@ Implement Linux-like memory stats for BSDs struct sysinfo info; sysinfo(&info); @@ -133,11 +197,29 @@ void setSystemRam() - stat.dwLength = sizeof(MEMORYSTATUS); - GlobalMemoryStatus(&stat); - systemRam = stat.dwTotalPhys; + stat.dwLength = sizeof(MEMORYSTATUSEX); + GlobalMemoryStatusEx(&stat); + systemRam = stat.ullTotalPhys; -#elif DARWIN - u64 mem; - size_t len = sizeof(mem); |