DDNet documentation
Loading...
Searching...
No Matches
updater.cpp File Reference
#include "updater.h"
#include <base/fs.h>
#include <base/log.h>
#include <base/str.h>
#include <engine/client.h>
#include <engine/engine.h>
#include <engine/external/json-parser/json.h>
#include <engine/shared/http.h>
#include <engine/shared/json.h>
#include <engine/storage.h>
#include <game/version.h>
#include <unordered_set>
#include <fcntl.h>
#include <sys/stat.h>
Include dependency graph for updater.cpp:

Classes

class  CUpdaterFetchTask

Functions

static bool IsUnreserved (unsigned char c)
static bool IsAllowedUpdaterPath (const char *pPath)
static void UrlEncodePath (const char *pIn, char *pOut, size_t OutSize)
static const char * GetUpdaterUrl (char *pBuf, int BufSize, const char *pFile)
static void FormatUpdaterDestPath (char *pBuf, int BufSize, const char *pFile, const char *pDestPath)
static bool SetExecutableBit (const char *pPath)

Function Documentation

◆ FormatUpdaterDestPath()

void FormatUpdaterDestPath ( char * pBuf,
int BufSize,
const char * pFile,
const char * pDestPath )
static

◆ GetUpdaterUrl()

const char * GetUpdaterUrl ( char * pBuf,
int BufSize,
const char * pFile )
static

◆ IsAllowedUpdaterPath()

bool IsAllowedUpdaterPath ( const char * pPath)
static

◆ IsUnreserved()

bool IsUnreserved ( unsigned char c)
inlinestatic

◆ SetExecutableBit()

bool SetExecutableBit ( const char * pPath)
static

◆ UrlEncodePath()

void UrlEncodePath ( const char * pIn,
char * pOut,
size_t OutSize )
static