diff options
author | 2022-03-10 02:55:40 +1100 | |
---|---|---|
committer | 2022-03-10 02:55:40 +1100 | |
commit | 422185fe558463a119cfdee25e2d4b6e5d71dc97 (patch) | |
tree | 10a01acb7c99b76a0cc575dabd4ce76ec9e3249f /src/emu/debug/debugcmd.cpp | |
parent | bbb9ec846a44598159258d36f21bae42437ee290 (diff) |
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.
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r-- | src/emu/debug/debugcmd.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<std::string> ¶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<std::string> ¶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<std::string> ¶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<std::string> ¶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()); } |