mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
Prevent certain register values from being formatted with invalid characters added in debugger state views (e.g. upd7810)
This commit is contained in:
parent
4f1f24ee87
commit
0f1b32c3b3
@ -255,6 +255,9 @@ void debug_view_state::view_update()
|
||||
default:
|
||||
curitem.update(source.m_stateintf->state_int(curitem.index()), cycles_changed);
|
||||
valstr = source.m_stateintf->state_string(curitem.index());
|
||||
// state_string may not always provide the maximum number of characters with some formats
|
||||
valstr.resize(curitem.value_length(), ' ');
|
||||
break;
|
||||
}
|
||||
|
||||
// if this row is visible, add it to the buffer
|
||||
|
Loading…
Reference in New Issue
Block a user