diff options
| author | 2016-02-28 11:09:00 +1100 | |
|---|---|---|
| committer | 2016-02-28 13:36:19 +1100 | |
| commit | aec01e740736db267e452f0ed5947649f79e3408 (patch) | |
| tree | 633ca7d80a756bfcc05d871817201c729e55142d /src/emu/debug/dvmemory.cpp | |
| parent | 3cba23966f6c1c6f9ee616e5af00ebcfcb0d0b0a (diff) | |
Replace strformat, strprintf and strcatprintf with type-safe steam_format and string_format
Update MAME to use new function
Instantiate ODR-used static constant members
Make some of the UI code more localisable
Remove use of retired functions in tools
Diffstat (limited to 'src/emu/debug/dvmemory.cpp')
| -rw-r--r-- | src/emu/debug/dvmemory.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/debug/dvmemory.cpp b/src/emu/debug/dvmemory.cpp index b792d002c27..c39372af5b3 100644 --- a/src/emu/debug/dvmemory.cpp +++ b/src/emu/debug/dvmemory.cpp @@ -142,14 +142,14 @@ void debug_view_memory::enumerate_sources() if (memintf->has_space(spacenum)) { address_space &space = memintf->space(spacenum); - strprintf(name,"%s '%s' %s space memory", memintf->device().name(), memintf->device().tag(), space.name()); + name = string_format("%s '%s' %s space memory", memintf->device().name(), memintf->device().tag(), space.name()); m_source_list.append(*global_alloc(debug_view_memory_source(name.c_str(), space))); } // then add all the memory regions for (memory_region *region = machine().memory().first_region(); region != nullptr; region = region->next()) { - strprintf(name, "Region '%s'", region->name()); + name = string_format("Region '%s'", region->name()); m_source_list.append(*global_alloc(debug_view_memory_source(name.c_str(), *region))); } @@ -538,14 +538,14 @@ void debug_view_memory::recompute() else { m_maxaddr = source.m_length - 1; - addrchars = strprintf(m_addrformat, "%X", m_maxaddr); + addrchars = string_format("%X", m_maxaddr).size(); } // generate an 8-byte aligned format for the address if (!m_reverse_view) - strprintf(m_addrformat, "%*s%%0%dX", 8 - addrchars, "", addrchars); + m_addrformat = string_format("%*s%%0%dX", 8 - addrchars, "", addrchars); else - strprintf(m_addrformat, "%%0%dX%*s", addrchars, 8 - addrchars, ""); + m_addrformat = string_format("%%0%dX%*s", addrchars, 8 - addrchars, ""); // if we are viewing a space with a minimum chunk size, clamp the bytes per chunk if (source.m_space != nullptr && source.m_space->byte_to_address(1) > 1) |
