Luanti 5.16.0-dev
Loading...
Searching...
No Matches
clientmedia.cpp File Reference
#include "clientmedia.h"
#include "gettext.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/hashing.h"
#include "util/string.h"
#include <sstream>
Include dependency graph for clientmedia.cpp:

Functions

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

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:

◆ clientMediaUpdateCacheCopy()

bool clientMediaUpdateCacheCopy ( const std::string & raw_hash,
const std::string & path )

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

Referenced by Game::copyServerClientCache().

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

◆ getMediaCacheDir()

std::string getMediaCacheDir ( )
static

References DIR_DELIM, and porting::path_cache.

Referenced by IClientMediaDownloader::IClientMediaDownloader(), clientMediaUpdateCache(), and clientMediaUpdateCacheCopy().

Here is the caller graph for this function: