aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-21 01:02:40 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-21 01:02:42 +0200
commit4cbb01e9884297534c18e2a49ab1e9faab6b2776 (patch)
treeed4a95b02079060ae7cd54073d5a5c44f629f604 /src
parent5e99f596e005fcc1a1b5727fea5453cabed179c8 (diff)
Update odhtdb
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;