diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-15 01:52:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-15 01:52:00 +0300 |
commit | c92942cd07aa0f1d5a6dd2460b588b70ca752df4 (patch) | |
tree | 07dcbe9f4471932648d6df170f091e67c1e5c167 /src | |
parent | ae01890fb7661acfb94bd9a51b5269c6ada2c66b (diff) | |
download | manaverse-c92942cd07aa0f1d5a6dd2460b588b70ca752df4.tar.gz manaverse-c92942cd07aa0f1d5a6dd2460b588b70ca752df4.tar.bz2 manaverse-c92942cd07aa0f1d5a6dd2460b588b70ca752df4.tar.xz manaverse-c92942cd07aa0f1d5a6dd2460b588b70ca752df4.zip |
Dump system ram size.
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/cpu.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/cpu.cpp b/src/utils/cpu.cpp index 61bb39539..5ae30c506 100644 --- a/src/utils/cpu.cpp +++ b/src/utils/cpu.cpp @@ -31,6 +31,10 @@ #endif // (defined(__amd64__) || defined(__i386__)) && defined(__GNUC__) // && (GCC_VERSION >= 40800) && !defined(ANDROID) +#ifdef USE_SDL2 +#include <SDL_cpuinfo.h> +#endif // USE_SDL2 + #include "debug.h" namespace @@ -111,6 +115,10 @@ void Cpu::detect() logger->log("cpu features not supported"); #endif // (defined(__amd64__) || defined(__i386__)) && defined(__GNUC__) // && (GCC_VERSION >= 40800) && !defined(ANDROID) + +#if SDL_VERSION_ATLEAST(2, 0, 1) + logger->log("System ram size: %d", SDL_GetSystemRAM()); +#endif // SDL_VERSION_ATLEAST(2, 0, 1) } void Cpu::printFlags() |