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

Function getdemo

source/src/client.cpp:680–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678
679string demosubpath;
680void getdemo(int *idx, char *dsp)
681{
682 if(!multiplayer(NULL))
683 {
684 conoutf("\f3Getting demo from server is not available in singleplayer");
685 return;
686 }
687 if(dsp && dsp[0]) formatstring(demosubpath)("%s/", dsp);
688 else copystring(demosubpath, "");
689 if(*idx<=0) conoutf("getting demo...");
690 else conoutf("getting demo %d...", *idx);
691 addmsg(SV_GETDEMO, "ri", *idx);
692}
693COMMAND(getdemo, "is");
694
695void listdemos()

Callers

nothing calls this directly

Calls 4

multiplayerFunction · 0.85
copystringFunction · 0.85
addmsgFunction · 0.85
conoutfFunction · 0.70

Tested by

no test coverage detected