diff options
m--------- | depends/odhtdb | 0 | ||||
-rw-r--r-- | src/main.cpp | 5 |
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; |