summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-27 12:32:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-27 12:32:16 +0300
commit7c87b2ac8e01307e603bd85420f8d10724a296e6 (patch)
treea653847183daa2bcb64f90d37893f549a2bcb6df /src/actions
parenteade4818db87cc41e4c014688e5ee0d15ede6912 (diff)
downloadplus-7c87b2ac8e01307e603bd85420f8d10724a296e6.tar.gz
plus-7c87b2ac8e01307e603bd85420f8d10724a296e6.tar.bz2
plus-7c87b2ac8e01307e603bd85420f8d10724a296e6.tar.xz
plus-7c87b2ac8e01307e603bd85420f8d10724a296e6.zip
Move chat command /dumpgl into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp15
-rw-r--r--src/actions/actions.h1
2 files changed, 16 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 6d62f9770..9f3259c09 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -25,6 +25,7 @@
#include "dropshortcut.h"
#include "emoteshortcut.h"
#include "game.h"
+#include "graphicsmanager.h"
#include "guild.h"
#include "itemshortcut.h"
#include "soundmanager.h"
@@ -971,4 +972,18 @@ impHandler0(dumpOGL)
return true;
}
+#ifdef USE_OPENGL
+impHandler(dumpGL)
+{
+ std::string str = graphicsManager.getGLVersion();
+ outStringNormal(event.tab, str, str);
+ return true;
+}
+#else
+impHandler0(dumpGL)
+{
+ return true;
+}
+#endif
+
} // namespace Actions
diff --git a/src/actions/actions.h b/src/actions/actions.h
index 4f8affb95..4aaa8b199 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -76,6 +76,7 @@ namespace Actions
decHandler(dumpEnvironment);
decHandler(dumpTests);
decHandler(dumpOGL);
+ decHandler(dumpGL);
} // namespace Actions
#undef decHandler