clifront.c: added "-lsoft" option as short version of "-listsoftware" [Fabio Priuli]

out of whatsnew: I also have modified best match for softlists to return 10 results, like in MAME, given that now only the correct list is parsed (thanks to Micko's change)
This commit is contained in:
Fabio Priuli 2011-01-14 07:56:29 +00:00
parent 4e0a81e250
commit 768e020c3a
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ static const options_entry cli_options[] =
{ "romident", "0", OPTION_COMMAND, "compare files with known MAME roms" }, { "romident", "0", OPTION_COMMAND, "compare files with known MAME roms" },
{ "listdevices;ld", "0", OPTION_COMMAND, "list available devices" }, { "listdevices;ld", "0", OPTION_COMMAND, "list available devices" },
{ "listmedia;lm", "0", OPTION_COMMAND, "list available media for the system" }, { "listmedia;lm", "0", OPTION_COMMAND, "list available media for the system" },
{ "listsoftware", "0", OPTION_COMMAND, "list known software for the system" }, { "listsoftware;lsoft", "0", OPTION_COMMAND, "list known software for the system" },
{ NULL } { NULL }
}; };

View File

@ -1326,7 +1326,7 @@ bool load_software_part(device_image_interface *image, const char *path, softwar
if (list) if (list)
{ {
software_info *matches[5] = { 0 }; software_info *matches[10] = { 0 };
int softnum; int softnum;
software_list_parse(list, list->error_proc, NULL); software_list_parse(list, list->error_proc, NULL);