changeset 16824:9d47c26bc1f1 draft

(svn r21558) -Codechange: add the graphics set and its version to the screenshot metadata as well
author rubidium <rubidium@openttd.org>
date Tue, 21 Dec 2010 10:11:11 +0000
parents 3a844b1791a9
children 1595576cd300
files src/screenshot.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/screenshot.cpp
+++ b/src/screenshot.cpp
@@ -211,6 +211,7 @@
 #include "newgrf_config.h"
 #include "ai/ai_info.hpp"
 #include "company_base.h"
+#include "base_media_base.h"
 #endif /* PNG_TEXT_SUPPORTED */
 
 static void PNGAPI png_my_error(png_structp png_ptr, png_const_charp message)
@@ -279,7 +280,8 @@
 
 	char buf[2048];
 	char *p = buf;
-	p = strecpy(p, "NewGRFS:\n", lastof(buf));
+	p += seprintf(p, lastof(buf), "Graphics set: %s (%u)\n", BaseGraphics::GetUsedSet()->name, BaseGraphics::GetUsedSet()->version);
+	p = strecpy(p, "NewGRFs:\n", lastof(buf));
 	for (const GRFConfig *c = _grfconfig; c != NULL; c = c->next) {
 		p += seprintf(p, lastof(buf), "%08X ", BSWAP32(c->ident.grfid));
 		p = md5sumToString(p, lastof(buf), c->ident.md5sum);