(svn r22511) -Add: Function to make heightmap file paths.

This commit is contained in:
alberth
2011-05-28 13:55:05 +00:00
parent b04d69df7a
commit 4b295664ad
4 changed files with 24 additions and 0 deletions

View File

@@ -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()
{