diff options
author | 2016-10-30 10:49:25 -0400 | |
---|---|---|
committer | 2016-10-30 10:49:25 -0400 | |
commit | 9d0f2ae21caf14927ba35991cf9db66cbda76086 (patch) | |
tree | e7b776d4964d94438f095de0c641f7a1c03d4275 /src/emu/didisasm.cpp | |
parent | 894c6320a03d6dfc314fac4f631117c79e977fb3 (diff) |
Changed disassembler overrides to use 'std::ostream &' internally
Diffstat (limited to 'src/emu/didisasm.cpp')
-rw-r--r-- | src/emu/didisasm.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/emu/didisasm.cpp b/src/emu/didisasm.cpp index bce58d975f5..33a4a0d002a 100644 --- a/src/emu/didisasm.cpp +++ b/src/emu/didisasm.cpp @@ -70,7 +70,12 @@ offs_t device_disasm_interface::disassemble(char *buffer, offs_t pc, const uint8 // check for disassembler override if (!m_dasm_override.isnull()) - result = m_dasm_override(device(), buffer, pc, oprom, opram, options); + { + std::ostringstream stream; + result = m_dasm_override(device(), stream, pc, oprom, opram, options); + std::string stream_str = stream.str(); + strcpy(buffer, stream_str.c_str()); + } if (result == 0) result = disasm_disassemble(buffer, pc, oprom, opram, options); |