Previous 15994 Revisions Next

r8867 Monday 23rd August, 2010 at 15:49:43 UTC by Fabio Priuli
fixing listxml year output (it was skipped if the year contains a '?')
[src/emu]info.c

src/emu/info.c
r8866r8867
10411041      fprintf(out, "\t\t<description>%s</description>\n", xml_normalize_string(game->description));
10421042
10431043   /* print the year only if is a number */
1044   if (game->year != NULL && strspn(game->year, "0123456789") == strlen(game->year))
1044   if (game->year != NULL && strspn(game->year, "0123456789?+") == strlen(game->year))
10451045      fprintf(out, "\t\t<year>%s</year>\n", xml_normalize_string(game->year));
10461046
10471047   /* print the manufacturer information */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team