X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fclient%2Fclientmedia.h;h=5a918535b9339500c08e18106eb26a79546cc8bd;hb=3176daee79a8e91bd16fc275704f49fe1648db32;hp=92831082c3fa1d011df27de7ccc0f6752030441b;hpb=cf224c9d6b72f81d19e9b2eca9d23f589b6a1392;p=minetest.git diff --git a/src/client/clientmedia.h b/src/client/clientmedia.h index 92831082c..5a918535b 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: