aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 4a38aa9..91f99af 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -659,6 +659,11 @@ int main(int argc, char **argv)
Channel::getCurrent()->addLocalMessage(msg, Channel::getCurrent()->getSystemUser());
});
+ Command::add("clearcache", [&database](const vector<string> &args)
+ {
+ printf("Cleared cache (%d bytes)\n", database->clearCache());
+ });
+
sf::Clock lastFocusedTimer;
sf::Clock frameTimer;