summaryrefslogtreecommitdiff
path: root/src/screenshot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/screenshot.cpp')
-rw-r--r--src/screenshot.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp
index 87cc143cd..78a9b1af3 100644
--- a/src/screenshot.cpp
+++ b/src/screenshot.cpp
@@ -577,6 +577,12 @@ static const ScreenshotFormat _screenshot_formats[] = {
{"PCX", "pcx", &MakePCXImage},
};
+/** Get filename extension of current screenshot file format. */
+const char *GetCurrentScreenshotExtension()
+{
+ return _screenshot_formats[_cur_screenshot_format].extension;
+}
+
/** Initialize screenshot format information on startup, with #_screenshot_format_name filled from the loadsave code. */
void InitializeScreenshotFormats()
{