diff options
author | Robbbert <Robbbert@users.noreply.github.com> | 2021-02-20 20:37:18 +1100 |
---|---|---|
committer | Robbbert <Robbbert@users.noreply.github.com> | 2021-02-20 20:37:18 +1100 |
commit | 4d31ab1fff31af24056824c230f1d45e7500ea26 (patch) | |
tree | f3bd3a0b2965e2c11b79c0b13bba755d4a50f975 | |
parent | a16eba4052e950d12d9d2c8f9d6f61ca96f2247f (diff) |
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
-rw-r--r-- | src/frontend/mame/clifront.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::string> &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()); |