mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +03:00
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:
parent
508c8ad7df
commit
d51770b70f
@ -19,14 +19,6 @@
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
CONSTANTS
|
||||
***************************************************************************/
|
||||
|
||||
#define CONFIG_VERSION 10
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
TYPE DEFINITIONS
|
||||
***************************************************************************/
|
||||
|
@ -24,6 +24,8 @@
|
||||
*
|
||||
*************************************/
|
||||
|
||||
#define CONFIG_VERSION 10
|
||||
|
||||
enum
|
||||
{
|
||||
CONFIG_TYPE_INIT = 0, /* opportunity to initialize things first */
|
||||
|
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user