]> git.lizzy.rs Git - minetest.git/blobdiff - src/client/clientmedia.h
Cleanup ClientLauncher structure (#10160)
[minetest.git] / src / client / clientmedia.h
index b08b83e4d8c48e851a0678642ca08b995a2dbaca..5a918535b9339500c08e18106eb26a79546cc8bd 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:
@@ -92,7 +97,6 @@ class ClientMediaDownloader
        struct RemoteServerStatus {
                std::string baseurl;
                s32 active_count;
-               bool request_by_filename;
        };
 
        void initialStep(Client *client);