X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fclient%2Fclientmedia.h;h=e97a0f24bef87997daa5b0b953604d1735a88986;hb=734fb2c811cdb0c26153c2bd5b62e458343963e7;hp=92831082c3fa1d011df27de7ccc0f6752030441b;hpb=cf224c9d6b72f81d19e9b2eca9d23f589b6a1392;p=minetest.git diff --git a/src/client/clientmedia.h b/src/client/clientmedia.h index 92831082c..e97a0f24b 100644 --- a/src/client/clientmedia.h +++ b/src/client/clientmedia.h @@ -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;