MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / FiosGetScreenshotDir

Function FiosGetScreenshotDir

src/fios.cpp:581–588  ·  view source on GitHub ↗

* Get the directory for screenshots. * @return path to screenshots */

Source from the content-addressed store, hash-verified

579 * @return path to screenshots
580 */
581std::string_view FiosGetScreenshotDir()
582{
583 static std::optional<std::string> fios_screenshot_path;
584
585 if (!fios_screenshot_path) fios_screenshot_path = FioFindDirectory(SCREENSHOT_DIR);
586
587 return *fios_screenshot_path;
588}
589
590/** Basic data to distinguish a scenario. Used in the server list window */
591struct ScenarioIdentifier {

Callers 3

GetOutputFilenameMethod · 0.85
MakeScreenshotNameFunction · 0.85
CmdDumpSMFFunction · 0.85

Calls 1

FioFindDirectoryFunction · 0.85

Tested by

no test coverage detected