mirror of
https://github.com/holub/mame
synced 2025-05-25 07:15:25 +03:00
fixing listxml year output (it was skipped if the year contains a '?') [Fabio Priuli]
This commit is contained in:
parent
0a38a62d17
commit
857e600df7
@ -1041,7 +1041,7 @@ static void print_game_info(FILE *out, const game_driver *game)
|
||||
fprintf(out, "\t\t<description>%s</description>\n", xml_normalize_string(game->description));
|
||||
|
||||
/* print the year only if is a number */
|
||||
if (game->year != NULL && strspn(game->year, "0123456789") == strlen(game->year))
|
||||
if (game->year != NULL && strspn(game->year, "0123456789?+") == strlen(game->year))
|
||||
fprintf(out, "\t\t<year>%s</year>\n", xml_normalize_string(game->year));
|
||||
|
||||
/* print the manufacturer information */
|
||||
|
Loading…
Reference in New Issue
Block a user