summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-15 01:52:00 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-15 01:52:00 +0300
commitc92942cd07aa0f1d5a6dd2460b588b70ca752df4 (patch)
tree07dcbe9f4471932648d6df170f091e67c1e5c167 /src/utils
parentae01890fb7661acfb94bd9a51b5269c6ada2c66b (diff)
downloadmv-c92942cd07aa0f1d5a6dd2460b588b70ca752df4.tar.gz
mv-c92942cd07aa0f1d5a6dd2460b588b70ca752df4.tar.bz2
mv-c92942cd07aa0f1d5a6dd2460b588b70ca752df4.tar.xz
mv-c92942cd07aa0f1d5a6dd2460b588b70ca752df4.zip
Dump system ram size.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/cpu.cpp8
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()