#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/sha1.h"
#include "util/string.h"
#include <sstream>
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) |
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().
bool clientMediaUpdateCacheCopy | ( | const std::string & | raw_hash, |
const std::string & | path ) |
References FileCache::exists(), getMediaCacheDir(), hex_encode(), and FileCache::updateCopyFile().
Referenced by Game::copyServerClientCache().
|
static |
References DIR_DELIM, and porting::path_cache.
Referenced by clientMediaUpdateCache(), and clientMediaUpdateCacheCopy().