X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fclient%2Fclientmedia.h;h=5a918535b9339500c08e18106eb26a79546cc8bd;hb=4fa1e03f6844a24fc4b37f22e7264957b2a71d06;hp=b08b83e4d8c48e851a0678642ca08b995a2dbaca;hpb=5f1cd555cd9d1c64426e173b30b5b792d211c835;p=minetest.git diff --git a/src/client/clientmedia.h b/src/client/clientmedia.h index b08b83e4d..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: @@ -92,7 +97,6 @@ class ClientMediaDownloader struct RemoteServerStatus { std::string baseurl; s32 active_count; - bool request_by_filename; }; void initialStep(Client *client);