Added back the hook to -listmedia option used by MESS

This commit is contained in:
Fabio Priuli 2010-01-19 14:37:52 +00:00
parent 2244f9274d
commit 576dfd4d9d
2 changed files with 7 additions and 0 deletions

View File

@ -95,6 +95,9 @@ static const options_entry cli_options[] =
{ "verifysamples", "0", OPTION_COMMAND, "report samplesets that have problems" },
{ "romident", "0", OPTION_COMMAND, "compare files with known MAME roms" },
{ "listdevices;ld", "0", OPTION_COMMAND, "list available devices" },
#ifdef MESS
{ "listmedia;lm", "0", OPTION_COMMAND, "list available media for the system" },
#endif
{ NULL }
};
@ -270,6 +273,9 @@ static int execute_commands(core_options *options, const char *exename, const ga
{ CLIOPTION_VERIFYROMS, info_verifyroms },
{ CLIOPTION_VERIFYSAMPLES, info_verifysamples },
{ CLIOPTION_ROMIDENT, info_romident }
#ifdef MESS
{ CLIOPTION_LISTMEDIA, info_listmedia },
#endif
};
int i;

View File

@ -38,6 +38,7 @@
#define CLIOPTION_VERIFYROMS "verifyroms"
#define CLIOPTION_VERIFYSAMPLES "verifysamples"
#define CLIOPTION_ROMIDENT "romident"
#define CLIOPTION_LISTMEDIA "listmedia" // needed by MESS