summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-09-29 14:44:12 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-09-29 14:44:12 +0000
commit0cf6785f9715f1c9bef50bb1e5e04b0840797bef (patch)
tree341dc69b4db79ee1ecc7b40eb86a829caf6586e6 /src/emu
parente1a32f54d87976cf7291bbdc1b5abcaa5602db62 (diff)
Fix bug where multiple sampleof attributes could be output, resulting in
invalid XML.
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emu/info.c b/src/emu/info.c
index 9a3fda2ae5b..e4ce467a35b 100644
--- a/src/emu/info.c
+++ b/src/emu/info.c
@@ -630,6 +630,9 @@ static void print_game_sampleof(FILE *out, const game_driver *game, const machin
/* only output sampleof if different from the game name */
if (cursampname[0] == '*' && strcmp(cursampname + 1, game->name) != 0)
fprintf(out, " sampleof=\"%s\"", xml_normalize_string(cursampname + 1));
+
+ /* must stop here, as there can only be one attribute of the same name */
+ return;
}
}
}