summaryrefslogtreecommitdiff
path: root/src/graphicsmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r--src/graphicsmanager.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp
index 68a2ac48d..e9360d88c 100644
--- a/src/graphicsmanager.cpp
+++ b/src/graphicsmanager.cpp
@@ -20,6 +20,7 @@
#include "graphicsmanager.h"
+#include "client.h"
#include "configuration.h"
#include "graphics.h"
#include "graphicsvertexes.h"
@@ -31,6 +32,8 @@
#include "utils/process.h"
#include "utils/stringutils.h"
+#include "test/testmain.h"
+
#include "debug.h"
GraphicsManager graphicsManager;
@@ -43,6 +46,14 @@ GraphicsManager::~GraphicsManager()
{
}
+bool GraphicsManager::startDetection()
+{
+ std::string fileName = getSelfName();
+ TestMain *test = new TestMain();
+ test->exec(false);
+ return test->getConfig().getValueInt("opengl", -1);
+}
+
bool GraphicsManager::detectGraphics()
{
#ifdef USE_OPENGL