From c92942cd07aa0f1d5a6dd2460b588b70ca752df4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 15 Sep 2017 01:52:00 +0300 Subject: Dump system ram size. --- src/utils/cpu.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/utils') 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 +#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() -- cgit v1.2.3-60-g2f50