MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / FetchUpdateTask_Run

Function FetchUpdateTask_Run

src/LWeb.c:608–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606}
607
608void FetchUpdateTask_Run(cc_bool release, int buildIndex) {
609 cc_string url; char urlBuffer[URL_MAX_SIZE];
610 String_InitArray(url, urlBuffer);
611
612 String_Format2(&url, UPDATES_SERVER "/%c/%c",
613 release ? "release" : "latest",
614 Updater_Info.builds[buildIndex].path);
615
616 LWebTask_Reset(&FetchUpdateTask.Base);
617 FetchUpdateTask.timestamp = release ? CheckUpdateTask.relTimestamp : CheckUpdateTask.devTimestamp;
618 FetchUpdateTask.Base.Handle = FetchUpdateTask_Handle;
619 FetchUpdateTask.Base.reqID = Http_AsyncGetData(&url, 0);
620}
621
622
623/*########################################################################################################################*

Callers 1

UpdatesScreen_DoFetchFunction · 0.85

Calls 3

String_Format2Function · 0.85
LWebTask_ResetFunction · 0.85
Http_AsyncGetDataFunction · 0.70

Tested by

no test coverage detected