diff options
author | alberth <alberth@openttd.org> | 2011-05-28 13:55:05 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2011-05-28 13:55:05 +0000 |
commit | 18382251923ac04007a59077f513184a3e66e5ec (patch) | |
tree | 3b664b527da28d64aef2c82548b1cb0ecf6652c6 /src/screenshot.cpp | |
parent | 84f7fc32fa5b9dd6d195d45fe67c55c80037a955 (diff) | |
download | openttd-18382251923ac04007a59077f513184a3e66e5ec.tar.xz |
(svn r22511) -Add: Function to make heightmap file paths.
Diffstat (limited to 'src/screenshot.cpp')
-rw-r--r-- | src/screenshot.cpp | 6 |
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() { |