mirror of
https://github.com/holub/mame
synced 2025-05-19 12:18:56 +03:00
clifront.c: prevented -lsoft from output DTD if no list is found [Fabio Priuli]
This commit is contained in:
parent
768e020c3a
commit
db61ec6aa6
@ -808,6 +808,8 @@ static int info_listsoftware(core_options *options, const char *gamename)
|
||||
|
||||
lists = global_alloc_array( char *, nr_lists );
|
||||
|
||||
if (nr_lists)
|
||||
{
|
||||
fprintf( out,
|
||||
"<?xml version=\"1.0\"?>\n"
|
||||
"<!DOCTYPE softwarelist [\n"
|
||||
@ -851,8 +853,7 @@ static int info_listsoftware(core_options *options, const char *gamename)
|
||||
"\t\t\t\t\t\t<!ATTLIST disk sha1 CDATA #IMPLIED>\n"
|
||||
"\t\t\t\t\t\t<!ATTLIST disk status (baddump|nodump|good) \"good\">\n"
|
||||
"\t\t\t\t\t\t<!ATTLIST disk writeable (yes|no) \"no\">\n"
|
||||
#if 0
|
||||
// we still do not store the dipswitch values in softlist, so it cannot be output here
|
||||
// we still do not store the dipswitch values in softlist, so there is no output here
|
||||
// TODO: add parsing dipsw in softlist.c and then add output here!
|
||||
"\t\t\t\t<!ELEMENT dipswitch (dipvalue*)>\n"
|
||||
"\t\t\t\t\t<!ATTLIST dipswitch name CDATA #REQUIRED>\n"
|
||||
@ -862,10 +863,10 @@ static int info_listsoftware(core_options *options, const char *gamename)
|
||||
"\t\t\t\t\t\t<!ATTLIST dipvalue name CDATA #REQUIRED>\n"
|
||||
"\t\t\t\t\t\t<!ATTLIST dipvalue value CDATA #REQUIRED>\n"
|
||||
"\t\t\t\t\t\t<!ATTLIST dipvalue default (yes|no) \"no\">\n"
|
||||
#endif
|
||||
"]>\n\n"
|
||||
"<softwarelists>\n"
|
||||
);
|
||||
}
|
||||
|
||||
for ( int drvindex = 0; drivers[drvindex] != NULL; drvindex++ )
|
||||
{
|
||||
@ -1048,7 +1049,10 @@ static int info_listsoftware(core_options *options, const char *gamename)
|
||||
}
|
||||
}
|
||||
|
||||
if (nr_lists)
|
||||
fprintf( out, "</softwarelists>\n" );
|
||||
else
|
||||
fprintf( out, "No software lists found for this system\n" );
|
||||
|
||||
global_free( lists );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user