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

Function GetCurrentScreenshotExtension

src/screenshot.cpp:61–67  ·  view source on GitHub ↗

Get filename extension of current screenshot file format. */

Source from the content-addressed store, hash-verified

59
60/** Get filename extension of current screenshot file format. */
61std::string_view GetCurrentScreenshotExtension()
62{
63 auto provider = GetScreenshotProvider();
64 if (provider == nullptr) return {};
65
66 return provider->GetName();
67}
68
69/**
70 * Callback of the screenshot generator that dumps the current video buffer.

Callers 1

FiosMakeHeightmapNameFunction · 0.85

Calls 2

GetScreenshotProviderFunction · 0.85
GetNameMethod · 0.45

Tested by

no test coverage detected