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
This commit is contained in:
Phil Bennett 2010-01-11 12:55:43 +00:00
parent 508c8ad7df
commit d51770b70f
3 changed files with 7 additions and 10 deletions

View File

@ -19,14 +19,6 @@
/***************************************************************************
CONSTANTS
***************************************************************************/
#define CONFIG_VERSION 10
/*************************************************************************** /***************************************************************************
TYPE DEFINITIONS TYPE DEFINITIONS
***************************************************************************/ ***************************************************************************/

View File

@ -24,6 +24,8 @@
* *
*************************************/ *************************************/
#define CONFIG_VERSION 10
enum enum
{ {
CONFIG_TYPE_INIT = 0, /* opportunity to initialize things first */ CONFIG_TYPE_INIT = 0, /* opportunity to initialize things first */

View File

@ -14,6 +14,7 @@
#include "info.h" #include "info.h"
#include "xmlfile.h" #include "xmlfile.h"
#include "hash.h" #include "hash.h"
#include "config.h"
#include <ctype.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" "<!ELEMENT " XML_ROOT " (" XML_TOP "+)>\n"
"\t<!ATTLIST " XML_ROOT " build CDATA #IMPLIED>\n" "\t<!ATTLIST " XML_ROOT " build CDATA #IMPLIED>\n"
"\t<!ATTLIST " XML_ROOT " debug (yes|no) \"no\">\n" "\t<!ATTLIST " XML_ROOT " debug (yes|no) \"no\">\n"
"\t<!ATTLIST " XML_ROOT " mameconfig CDATA #REQUIRED>\n"
#ifdef MESS #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" "\t<!ELEMENT " XML_TOP " (description, year?, manufacturer, biosset*, rom*, disk*, sample*, chip*, display*, sound?, input?, dipswitch*, configuration*, category*, adjuster*, driver?, device*, ramoption*)>\n"
#else #else
@ -1054,8 +1056,9 @@ void print_mame_xml(FILE *out, const game_driver *const games[], const char *gam
#else #else
"no" "no"
#endif #endif
"\">\n", "\" mameconfig=\"%d\">\n",
xml_normalize_string(build_version) xml_normalize_string(build_version),
CONFIG_VERSION
); );
for (drvnum = 0; games[drvnum] != NULL; drvnum++) for (drvnum = 0; games[drvnum] != NULL; drvnum++)