diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-03 08:29:45 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-05-03 08:29:48 +0200 |
commit | 9bb631f1e1861c63f38125fffb91081c98a1cfcc (patch) | |
tree | ad852904b8ae278c789e7f636ed4107038231c3f /include/Cache.hpp | |
parent | 9cde35c64c9f569055b101a80419d900f58806a9 (diff) |
Add/remove/list binds, saving to file
Diffstat (limited to 'include/Cache.hpp')
-rw-r--r-- | include/Cache.hpp | 4 |
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. |