aboutsummaryrefslogtreecommitdiff
path: root/include/Cache.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Cache.hpp')
-rw-r--r--include/Cache.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Cache.hpp b/include/Cache.hpp
index 429f652..19b811a 100644
--- a/include/Cache.hpp
+++ b/include/Cache.hpp
@@ -3,6 +3,7 @@
#include <boost/filesystem/path.hpp>
#include <SFML/Graphics/Texture.hpp>
#include <string>
+#include <unordered_map>
#include <thread>
#include <mutex>
#include <vector>
@@ -49,6 +50,9 @@ namespace dchat
// Creates directory if it doesn't exist (recursively). Throws boost exception on failure
static boost::filesystem::path getDchatDir();
+ static void loadBindsFromFile();
+ static void replaceBindsInFile(const std::unordered_map<std::string, std::string> &binds);
+
// Get cached image or downloads it.
// Default download file limit is 12MB
// Returns ImageByUrlResult describing texture status.