partial autodownload rewrite
* own source file for autodownload * use cleaned up zip functions * use new http get function (no more curl) * enforce strict file naming rules and file size limits * ping all package servers on every game start to determine ping times * support media file update lists (also kept on package servers) * allow users to manually prioritise package servers * automatically select server with newest media file revision new or changed commands: addpckserver hostname [priority] Adds a host name to the list of package servers. If a priority is given, it influences the sorting of servers. Servers with higher priority are queried first. If servers have the same priority, they are sorted by ping. Default priority is zero. getpackageserver Returns a table with four columns of all configured package servers. The columns are: host name, priority, ping and resolved. "resolved" is a flag, indicating, if the server answered the ping during game start. removed cubescript idents: sortpckservers gamestarts DOCREF addpckserver getpckserver
This commit is contained in:
@@ -1304,7 +1304,11 @@ void clearservers()
|
||||
}
|
||||
|
||||
#define RETRIEVELIMIT 5000
|
||||
extern size_t write_callback(void *ptr, size_t size, size_t nmemb, FILE *stream);
|
||||
size_t write_callback(void *ptr, size_t size, size_t nmemb, FILE *stream)
|
||||
{
|
||||
return fwrite(ptr, size, nmemb, stream);
|
||||
}
|
||||
|
||||
extern char *global_name;
|
||||
bool cllock = false, clfail = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user