Minetest  5.4.0
clientmedia.cpp File Reference
#include "clientmedia.h"
#include "httpfetch.h"
#include "client.h"
#include "filecache.h"
#include "filesys.h"
#include "log.h"
#include "porting.h"
#include "settings.h"
#include "util/hex.h"
#include "util/serialize.h"
#include "util/sha1.h"
#include "util/string.h"
+ Include dependency graph for clientmedia.cpp:

Functions

static std::string getMediaCacheDir ()
 
bool clientMediaUpdateCache (const std::string &raw_hash, const std::string &filedata)
 

Function Documentation

◆ clientMediaUpdateCache()

bool clientMediaUpdateCache ( const std::string &  raw_hash,
const std::string &  filedata 
)

References FileCache::exists(), getMediaCacheDir(), hex_encode(), and FileCache::update().

Referenced by Client::handleCommand_MediaPush().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMediaCacheDir()

static std::string getMediaCacheDir ( )
static

References DIR_DELIM, and porting::path_cache.

Referenced by clientMediaUpdateCache(), and ClientMediaDownloader::initialStep().

+ Here is the caller graph for this function: