mirror of
https://github.com/holub/mame
synced 2025-05-31 18:11:50 +03:00
Added back the hook to -listmedia option used by MESS
This commit is contained in:
parent
2244f9274d
commit
576dfd4d9d
@ -95,6 +95,9 @@ static const options_entry cli_options[] =
|
|||||||
{ "verifysamples", "0", OPTION_COMMAND, "report samplesets that have problems" },
|
{ "verifysamples", "0", OPTION_COMMAND, "report samplesets that have problems" },
|
||||||
{ "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" },
|
||||||
|
#ifdef MESS
|
||||||
|
{ "listmedia;lm", "0", OPTION_COMMAND, "list available media for the system" },
|
||||||
|
#endif
|
||||||
|
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
@ -270,6 +273,9 @@ static int execute_commands(core_options *options, const char *exename, const ga
|
|||||||
{ CLIOPTION_VERIFYROMS, info_verifyroms },
|
{ CLIOPTION_VERIFYROMS, info_verifyroms },
|
||||||
{ CLIOPTION_VERIFYSAMPLES, info_verifysamples },
|
{ CLIOPTION_VERIFYSAMPLES, info_verifysamples },
|
||||||
{ CLIOPTION_ROMIDENT, info_romident }
|
{ CLIOPTION_ROMIDENT, info_romident }
|
||||||
|
#ifdef MESS
|
||||||
|
{ CLIOPTION_LISTMEDIA, info_listmedia },
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
#define CLIOPTION_VERIFYROMS "verifyroms"
|
#define CLIOPTION_VERIFYROMS "verifyroms"
|
||||||
#define CLIOPTION_VERIFYSAMPLES "verifysamples"
|
#define CLIOPTION_VERIFYSAMPLES "verifysamples"
|
||||||
#define CLIOPTION_ROMIDENT "romident"
|
#define CLIOPTION_ROMIDENT "romident"
|
||||||
|
#define CLIOPTION_LISTMEDIA "listmedia" // needed by MESS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user