Luanti 5.19.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 clientMediaUpdateCache(), FileCache::exists(), getMediaCacheDir(), and FileCache::update().

Referenced by clientMediaUpdateCache(), and 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 clientMediaUpdateCacheCopy(), FileCache::exists(), getMediaCacheDir(), and FileCache::updateCopyFile().

Referenced by clientMediaUpdateCacheCopy(), and 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, getMediaCacheDir(), and porting::path_cache.

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

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