]> git.lizzy.rs Git - minetest.git/blobdiff - src/client/clientmedia.h
Add helpful error messages if Irrlicht library / include dir are set incorrectly...
[minetest.git] / src / client / clientmedia.h
index 92831082c3fa1d011df27de7ccc0f6752030441b..e97a0f24bef87997daa5b0b953604d1735a88986 100644 (file)
@@ -33,6 +33,11 @@ struct HTTPFetchResult;
 #define MTHASHSET_FILE_SIGNATURE 0x4d544853 // 'MTHS'
 #define MTHASHSET_FILE_NAME "index.mth"
 
+// Store file into media cache (unless it exists already)
+// Validating the hash is responsibility of the caller
+bool clientMediaUpdateCache(const std::string &raw_hash,
+       const std::string &filedata);
+
 class ClientMediaDownloader
 {
 public:
@@ -132,7 +137,6 @@ class ClientMediaDownloader
        // Status of remote transfers
        unsigned long m_httpfetch_caller;
        unsigned long m_httpfetch_next_id = 0;
-       long m_httpfetch_timeout = 0;
        s32 m_httpfetch_active = 0;
        s32 m_httpfetch_active_limit = 0;
        s32 m_outstanding_hash_sets = 0;