summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-08 19:37:53 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-09 15:21:24 +0300
commit2f7c62a4c312ae6c0d2c6ae52cb06a73c553c2c3 (patch)
tree47c039cbe54cb903ef4987fe0451efb3a7be0632 /src/client.cpp
parent4fcd82d8ea4556236148a7be102ae9edc3ab58b7 (diff)
downloadmanaplus-2f7c62a4c312ae6c0d2c6ae52cb06a73c553c2c3.tar.gz
manaplus-2f7c62a4c312ae6c0d2c6ae52cb06a73c553c2c3.tar.bz2
manaplus-2f7c62a4c312ae6c0d2c6ae52cb06a73c553c2c3.tar.xz
manaplus-2f7c62a4c312ae6c0d2c6ae52cb06a73c553c2c3.zip
Add cpu features detection.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 4fcfaa081..fef51e24f 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -96,6 +96,7 @@
#include "resources/petdb.h"
#include "resources/resourcemanager.h"
+#include "utils/cpu.h"
#include "utils/gettext.h"
#include "utils/mkdir.h"
#include "utils/paths.h"
@@ -589,6 +590,7 @@ void Client::gameInit()
ImageHelper::setEnableAlpha(config.getFloatValue("guialpha") != 1.0f);
#endif
logVars();
+ Cpu::detect();
graphicsManager.initGraphics(mOptions.noOpenGL);
graphicsManager.detectPixelSize();
runCounters = config.getBoolValue("packetcounters");