aboutsummaryrefslogtreecommitdiff
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
parent5e99f596e005fcc1a1b5727fea5453cabed179c8 (diff)
Update odhtdb
m---------depends/odhtdb0
-rw-r--r--src/main.cpp5
2 files changed, 5 insertions, 0 deletions
diff --git a/depends/odhtdb b/depends/odhtdb
-Subproject e46344de86b92da7bb8c6e82c8f668fa5d20357
+Subproject 45c0c31c54d4dd9f164db770ebede5087bbc8ae
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;