summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-25 12:46:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-25 12:46:16 +0300
commite5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67 (patch)
tree56240086db88e4e72fb29dabffea23aaf3034eb6 /src/actions/actions.cpp
parentd1a7fe4f55b967d7d844c0587f976d7d393b99e0 (diff)
downloadmanaplus-e5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67.tar.gz
manaplus-e5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67.tar.bz2
manaplus-e5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67.tar.xz
manaplus-e5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67.zip
Move chat command /cleangraphics into actions.
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 73c57985c..ae9a21b76 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -78,6 +78,8 @@
#include "listeners/updatestatuslistener.h"
+#include "resources/resourcemanager.h"
+
#include "resources/map/map.h"
#include "utils/gettext.h"
@@ -542,4 +544,16 @@ impHandler0(who)
return true;
}
+impHandler0(cleanGraphics)
+{
+ ResourceManager::getInstance()->clearCache();
+
+ if (debugChatTab)
+ {
+ // TRANSLATORS: clear graphics command message
+ debugChatTab->chatLog(_("Cache cleaned"));
+ }
+ return true;
+}
+
} // namespace Actions