Update Download.hpp
This commit is contained in:
parent
45cfea133b
commit
b81c1b4e06
@ -17,6 +17,8 @@ namespace Components
|
|||||||
static void InitiateClientDownload(const std::string& mod, bool needPassword, bool map = false);
|
static void InitiateClientDownload(const std::string& mod, bool needPassword, bool map = false);
|
||||||
static void InitiateMapDownload(const std::string& map, bool needPassword);
|
static void InitiateMapDownload(const std::string& map, bool needPassword);
|
||||||
|
|
||||||
|
static void ReplyError(mg_connection* connection, int code, std::string messageOverride = {});
|
||||||
|
|
||||||
static Dvar::Var SV_wwwDownload;
|
static Dvar::Var SV_wwwDownload;
|
||||||
static Dvar::Var SV_wwwBaseUrl;
|
static Dvar::Var SV_wwwBaseUrl;
|
||||||
|
|
||||||
@ -105,7 +107,6 @@ namespace Components
|
|||||||
static bool DownloadFile(ClientDownload* download, unsigned int index);
|
static bool DownloadFile(ClientDownload* download, unsigned int index);
|
||||||
|
|
||||||
static void LogFn(char c, void* param);
|
static void LogFn(char c, void* param);
|
||||||
static void ReplyError(mg_connection* connection, int code, std::string messageOverride = {});
|
|
||||||
static void Reply(mg_connection* connection, const std::string& contentType, const std::string& data);
|
static void Reply(mg_connection* connection, const std::string& contentType, const std::string& data);
|
||||||
|
|
||||||
static std::optional<std::string> FileHandler(mg_connection* c, const mg_http_message* hm);
|
static std::optional<std::string> FileHandler(mg_connection* c, const mg_http_message* hm);
|
||||||
|
Loading…
Reference in New Issue
Block a user