From 576dfd4d9d0a1d9d5b15ba06c0a3d8c6a52d5b03 Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Tue, 19 Jan 2010 14:37:52 +0000 Subject: [PATCH] Added back the hook to -listmedia option used by MESS --- src/emu/clifront.c | 6 ++++++ src/emu/clifront.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/emu/clifront.c b/src/emu/clifront.c index 38b1f4bdf1f..787f9c6fd2e 100644 --- a/src/emu/clifront.c +++ b/src/emu/clifront.c @@ -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; diff --git a/src/emu/clifront.h b/src/emu/clifront.h index 7e60a046183..f7b3912d745 100644 --- a/src/emu/clifront.h +++ b/src/emu/clifront.h @@ -38,6 +38,7 @@ #define CLIOPTION_VERIFYROMS "verifyroms" #define CLIOPTION_VERIFYSAMPLES "verifysamples" #define CLIOPTION_ROMIDENT "romident" +#define CLIOPTION_LISTMEDIA "listmedia" // needed by MESS