From d51770b70fc77f57321c9ca246b6515cfeebe5f7 Mon Sep 17 00:00:00 2001 From: Phil Bennett Date: Mon, 11 Jan 2010 12:55:43 +0000 Subject: [PATCH] Added the mameconfig version to the -listxml output [Oliver Stoneberg] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ---------- Forwarded message ---------- From: Oliver Stöneberg Date: Thu, Dec 31, 2009 at 2:45 PM Subject: mameconfig version in -listxml To: submit@mamedev.org This patch adds the mameconfig version to the -listxml output --- src/emu/config.c | 8 -------- src/emu/config.h | 2 ++ src/emu/info.c | 7 +++++-- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/emu/config.c b/src/emu/config.c index d71ed5c1ef4..4ab9c1339a9 100644 --- a/src/emu/config.c +++ b/src/emu/config.c @@ -19,14 +19,6 @@ -/*************************************************************************** - CONSTANTS -***************************************************************************/ - -#define CONFIG_VERSION 10 - - - /*************************************************************************** TYPE DEFINITIONS ***************************************************************************/ diff --git a/src/emu/config.h b/src/emu/config.h index 61fb9f58862..c34bb1bea6b 100644 --- a/src/emu/config.h +++ b/src/emu/config.h @@ -24,6 +24,8 @@ * *************************************/ +#define CONFIG_VERSION 10 + enum { CONFIG_TYPE_INIT = 0, /* opportunity to initialize things first */ diff --git a/src/emu/info.c b/src/emu/info.c index 44c596eda20..63ae4dc509a 100644 --- a/src/emu/info.c +++ b/src/emu/info.c @@ -14,6 +14,7 @@ #include "info.h" #include "xmlfile.h" #include "hash.h" +#include "config.h" #include @@ -922,6 +923,7 @@ void print_mame_xml(FILE *out, const game_driver *const games[], const char *gam "\n" "\t\n" "\t\n" + "\t\n" #ifdef MESS "\t\n" #else @@ -1054,8 +1056,9 @@ void print_mame_xml(FILE *out, const game_driver *const games[], const char *gam #else "no" #endif - "\">\n", - xml_normalize_string(build_version) + "\" mameconfig=\"%d\">\n", + xml_normalize_string(build_version), + CONFIG_VERSION ); for (drvnum = 0; games[drvnum] != NULL; drvnum++)