summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/clifront.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2011-01-24 14:05:01 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2011-01-24 14:05:01 +0000
commitbdb888facafe08124952f01d9d3fbe2577220041 (patch)
treebd9458bfd552eb0b63cba24bdeead00e52bb0598 /src/emu/clifront.c
parent79861afb8d34c736dc18d04b90cb8e0a4eeeacb8 (diff)
Only display suggestions in case there were really no matching drivers, but display empty output in case there were really no clones for such machine same as before (no whatsnew)
Diffstat (limited to 'src/emu/clifront.c')
-rw-r--r--src/emu/clifront.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/emu/clifront.c b/src/emu/clifront.c
index 62cbc6aab9b..af4fcd26e2a 100644
--- a/src/emu/clifront.c
+++ b/src/emu/clifront.c
@@ -440,8 +440,16 @@ int cli_info_listsource(core_options *options, const char *gamename)
int cli_info_listclones(core_options *options, const char *gamename)
{
- int drvindex, count = 0;
+ int drvindex, count = 0, drvcnt = 0;
+ for (drvindex = 0; drivers[drvindex] != NULL; drvindex++)
+ {
+ if (mame_strwildcmp(gamename, drivers[drvindex]->name) == 0)
+ {
+ drvcnt++;
+ }
+ }
+ if (drvcnt==0) return MAMERR_NO_SUCH_GAME;
/* iterate over drivers */
for (drvindex = 0; drivers[drvindex] != NULL; drvindex++)
{
@@ -461,8 +469,7 @@ int cli_info_listclones(core_options *options, const char *gamename)
}
}
- /* return an error if none found */
- return (count > 0) ? MAMERR_NONE : MAMERR_NO_SUCH_GAME;
+ return MAMERR_NONE;
}