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/frontend/mame/luaengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/frontend/mame/luaengine.cpp') diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp index 93f4fa85e94..022d88f6515 100644 --- a/src/frontend/mame/luaengine.cpp +++ b/src/frontend/mame/luaengine.cpp @@ -2495,7 +2495,7 @@ void lua_engine::initialize() auto target_type = sol().registry().create_simple_usertype("new", sol::no_constructor); target_type.set("view_bounds", [](render_target &rt) { - const render_bounds b = rt.current_view()->bounds(); + const render_bounds b = rt.current_view().bounds(); return std::tuple(b.x0, b.x1, b.y0, b.y1); }); target_type.set("width", &render_target::width); -- cgit v1.2.3-70-g09d2