From 94601c77cc5b645a7738d634fb6e668dfd98d6db Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 6 Sep 2020 01:41:44 +1000 Subject: -util/xmlfile: Escape attribute and element content. The previous behaviour was unintuitive - parsing an XML file and writing it out immediately would produce invalid XML if the file contained any characters that needed escaping. It makes far more sense to escape on writing rather than expecting the user to escape input. -Add preliminary support for visibility toggles to artwork system. This allows the user to show/hide related elements in a view, with nesting. The view can specify whether elements are shown or hidden by default. Settings are saved per host window/screen per view. There is no way to set the initial visibility state on the command line. Legacy "Space Invaders cabinet model" layers are mapped onto visibility toggles. This is not stable yet. In particular, the XML element/attribute names have not been finalised. The new features have not been added to complay.py to prevent them from being used before they're finalised. --- src/emu/debug/debugcpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/emu/debug/debugcpu.cpp') diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 6dacf7acee1..c3dd9a0c3a6 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -1490,7 +1490,7 @@ bool device_debug::comment_export(util::xml::data_node &curnode) // iterate through the comments for (const auto & elem : m_comment_set) { - util::xml::data_node *datanode = curnode.add_child("comment", util::xml::normalize_string(elem.m_text.c_str())); + util::xml::data_node *datanode = curnode.add_child("comment", elem.m_text.c_str()); if (datanode == nullptr) return false; datanode->set_attribute_int("address", elem.m_address); -- cgit v1.2.3