From 422185fe558463a119cfdee25e2d4b6e5d71dc97 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 10 Mar 2022 02:55:40 +1100 Subject: docs: Added page describing how MAME searches for media. Also made error messages for missing CHDs and missing files for software parts using the image file loader show search paths, and changed the (poorly named) bitbanger device to use the image file loader rather than the ROM loader for software items. --- src/emu/debug/debugcmd.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/emu/debug/debugcmd.cpp') diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index 2915ef342db..bb93f050c95 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -1052,7 +1052,7 @@ bool debugger_commands::mini_printf(std::ostream &stream, std::string_view forma m_console.printf("Not enough parameters for format!\n"); return false; } - util::stream_format(stream, "%c", char(*param)); + stream << char(*param); param++; params--; break; @@ -1115,7 +1115,7 @@ void debugger_commands::execute_printf(const std::vector ¶ms) /* then do a printf */ std::ostringstream buffer; if (mini_printf(buffer, params[0], params.size() - 1, &values[1])) - m_console.printf("%s\n", buffer.str()); + m_console.printf("%s\n", std::move(buffer).str()); } @@ -1134,7 +1134,7 @@ void debugger_commands::execute_logerror(const std::vector ¶ms) /* then do a printf */ std::ostringstream buffer; if (mini_printf(buffer, params[0], params.size() - 1, &values[1])) - m_machine.logerror("%s", buffer.str()); + m_machine.logerror("%s", std::move(buffer).str()); } @@ -1153,7 +1153,7 @@ void debugger_commands::execute_tracelog(const std::vector ¶ms) /* then do a printf */ std::ostringstream buffer; if (mini_printf(buffer, params[0], params.size() - 1, &values[1])) - m_console.get_visible_cpu()->debug()->trace_printf("%s", buffer.str().c_str()); + m_console.get_visible_cpu()->debug()->trace_printf("%s", std::move(buffer).str().c_str()); } @@ -1189,7 +1189,7 @@ void debugger_commands::execute_tracesym(const std::vector ¶ms) // then do a printf std::ostringstream buffer; if (mini_printf(buffer, format.str(), params.size(), values)) - m_console.get_visible_cpu()->debug()->trace_printf("%s", buffer.str().c_str()); + m_console.get_visible_cpu()->debug()->trace_printf("%s", std::move(buffer).str().c_str()); } -- cgit v1.2.3