From 4d31ab1fff31af24056824c230f1d45e7500ea26 Mon Sep 17 00:00:00 2001 From: Robbbert Date: Sat, 20 Feb 2021 20:37:18 +1100 Subject: Make -listmedia compatible with grep/find Examples: List all systems with .tap support: mame -listmedia | find ".tap" List all systems with paper tape reader: mame -listmedia | grep (ptap --- src/frontend/mame/clifront.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/mame/clifront.cpp b/src/frontend/mame/clifront.cpp index 69807778d1b..d48ab54ffef 100644 --- a/src/frontend/mame/clifront.cpp +++ b/src/frontend/mame/clifront.cpp @@ -819,7 +819,7 @@ void cli_frontend::listmedia(const std::vector &args) std::string paren_shortname = string_format("(%s)", imagedev.brief_instance_name()); // output the line, up to the list of extensions - printf("%-16s %-16s %-10s ", first ? drivlist.driver().name : "", imagedev.instance_name().c_str(), paren_shortname.c_str()); + printf("%-16s %-16s %-10s ", drivlist.driver().name, imagedev.instance_name().c_str(), paren_shortname.c_str()); // get the extensions and print them std::string extensions(imagedev.file_extensions()); -- cgit v1.2.3