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

Function screenshot

source/src/main.cpp:460–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458COMMANDF(getscrext, "", () { result(getscrext()); });
459
460void screenshot(const char *filename)
461{
462 static string buf;
463 if(filename && filename[0]) formatstring(buf)("screenshots/%s%s", filename, getscrext());
464 else if(getclientmap()[0]) formatstring(buf)("screenshots/%s_%s_%s%s", timestring(), behindpath(getclientmap()), modestr(gamemode, true), getscrext());
465 else formatstring(buf)("screenshots/%s%s", timestring(), getscrext());
466 path(buf);
467 mapscreenshot(buf, false, screenshottype, screenshotscale, 0, jpegquality);
468}
469COMMAND(screenshot, "s");
470
471void mapshot()

Callers 1

menukeyFunction · 0.85

Calls 7

getscrextFunction · 0.85
getclientmapFunction · 0.85
behindpathFunction · 0.85
modestrFunction · 0.85
pathFunction · 0.85
mapscreenshotFunction · 0.85
timestringFunction · 0.70

Tested by

no test coverage detected