From 4cbb01e9884297534c18e2a49ab1e9faab6b2776 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 21 May 2018 01:02:40 +0200 Subject: Update odhtdb --- depends/odhtdb | 2 +- src/main.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/depends/odhtdb b/depends/odhtdb index e46344d..45c0c31 160000 --- a/depends/odhtdb +++ b/depends/odhtdb @@ -1 +1 @@ -Subproject commit e46344de86b92da7bb8c6e82c8f668fa5d20357c +Subproject commit 45c0c31c54d4dd9f164db770ebede5087bbc8aef 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 &args) + { + printf("Cleared cache (%d bytes)\n", database->clearCache()); + }); + sf::Clock lastFocusedTimer; sf::Clock frameTimer; -- cgit v1.2.3