MCPcopy Create free account
hub / github.com/assaultcube/AC / progress_callback_retrieveservers

Function progress_callback_retrieveservers

source/src/serverbrowser.cpp:1307–1312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1305#define RETRIEVELIMIT 5000
1306
1307int progress_callback_retrieveservers(void *data, float progress)
1308{
1309 if(progress < 0) show_out_of_renderloop_progress(progress + 1.0f, "waiting for response (esc to abort)");
1310 else show_out_of_renderloop_progress(min(progress, 1.0f), (const char *)data);
1311 return interceptkey(SDLK_ESCAPE) ? 1 : 0;
1312}
1313
1314VARP(mastertype, 0, 0, 1); // 0: TCP direct, 1: HTTP proxy
1315

Callers

nothing calls this directly

Calls 3

minFunction · 0.85
interceptkeyFunction · 0.85

Tested by

no test coverage detected