diff options
author | 2016-03-17 12:01:47 +1100 | |
---|---|---|
committer | 2016-03-17 13:30:09 +1100 | |
commit | f0e580e40a333fd9363e23710d440c5bfa1b5bce (patch) | |
tree | 8bfbb50834324664610dc6ec648fd38cb39c761e | |
parent | 776bfad1c1f4e9a4dd5e799f9ca5e9145ca644a0 (diff) |
Clear error status on persistent streams
-rw-r--r-- | src/emu/debug/dvdisasm.cpp | 2 | ||||
-rw-r--r-- | src/lib/util/corefile.cpp | 1 | ||||
-rw-r--r-- | src/mame/drivers/ssem.cpp | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/debug/dvdisasm.cpp b/src/emu/debug/dvdisasm.cpp index 6daca107f86..10cb3e75e64 100644 --- a/src/emu/debug/dvdisasm.cpp +++ b/src/emu/debug/dvdisasm.cpp @@ -370,6 +370,7 @@ bool debug_view_disasm::recompute(offs_t pc, int startline, int lines) // allocate disassembly buffer const auto total_bytes = m_total.x * m_total.y; + m_dasm.clear(); m_dasm.reserve(total_bytes).seekp(total_bytes); // iterate over lines @@ -387,6 +388,7 @@ bool debug_view_disasm::recompute(offs_t pc, int startline, int lines) // convert back and set the address of this instruction m_byteaddress[instr] = pcbyte; + m_dasm.clear(); util::stream_format(m_dasm.seekp(base), source.m_space.is_octal() ? " %0*o " : " %0*X ", source.m_space.logaddrchars()/2*char_num, source.m_space.byte_to_address(pcbyte)); diff --git a/src/lib/util/corefile.cpp b/src/lib/util/corefile.cpp index ec1e25340e3..5c16d886fe3 100644 --- a/src/lib/util/corefile.cpp +++ b/src/lib/util/corefile.cpp @@ -611,6 +611,7 @@ int core_text_file::puts(char const *s) int core_text_file::vprintf(util::format_argument_pack<std::ostream> const &args) { + m_printf_buffer.clear(); m_printf_buffer.reserve(1024); m_printf_buffer.seekp(0, ovectorstream::beg); util::stream_format<std::ostream, std::ostream>(m_printf_buffer, args); diff --git a/src/mame/drivers/ssem.cpp b/src/mame/drivers/ssem.cpp index 278d02518fb..dac314aa9eb 100644 --- a/src/mame/drivers/ssem.cpp +++ b/src/mame/drivers/ssem.cpp @@ -416,6 +416,7 @@ void ssem_state::glyph_print(bitmap_rgb32 &bitmap, INT32 x, INT32 y, Format &&fm { const rectangle &visarea = m_screen->visible_area(); + m_glyph_print_buf.clear(); m_glyph_print_buf.seekp(0, util::ovectorstream::beg); util::stream_format(m_glyph_print_buf, std::forward<Format>(fmt), std::forward<Params>(args)...); m_glyph_print_buf.put('\0'); |