| 458 | COMMANDF(getscrext, "", () { result(getscrext()); }); |
| 459 | |
| 460 | void 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 | } |
| 469 | COMMAND(screenshot, "s"); |
| 470 | |
| 471 | void mapshot() |
no test coverage detected