diff options
author | 2010-01-11 12:55:43 +0000 | |
---|---|---|
committer | 2010-01-11 12:55:43 +0000 | |
commit | d51770b70fc77f57321c9ca246b6515cfeebe5f7 (patch) | |
tree | 69ab08a7dca53d24289c3b055d3d62fa21298a95 | |
parent | 508c8ad7df2e114afb8b12283755571448f1c846 (diff) |
Added the mameconfig version to the -listxml output [Oliver Stoneberg]
---------- Forwarded message ----------
From: Oliver Stöneberg <oliverst@online.de>
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
-rw-r--r-- | src/emu/config.c | 8 | ||||
-rw-r--r-- | src/emu/config.h | 2 | ||||
-rw-r--r-- | 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 @@ -20,14 +20,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 <ctype.h> @@ -922,6 +923,7 @@ void print_mame_xml(FILE *out, const game_driver *const games[], const char *gam "<!ELEMENT " XML_ROOT " (" XML_TOP "+)>\n" "\t<!ATTLIST " XML_ROOT " build CDATA #IMPLIED>\n" "\t<!ATTLIST " XML_ROOT " debug (yes|no) \"no\">\n" + "\t<!ATTLIST " XML_ROOT " mameconfig CDATA #REQUIRED>\n" #ifdef MESS "\t<!ELEMENT " XML_TOP " (description, year?, manufacturer, biosset*, rom*, disk*, sample*, chip*, display*, sound?, input?, dipswitch*, configuration*, category*, adjuster*, driver?, device*, ramoption*)>\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++) |