summaryrefslogtreecommitdiffstats
path: root/src/emu/rendlay.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-12-13 09:54:03 +1100
committer Vas Crabb <vas@vastheman.com>2020-12-13 09:54:03 +1100
commit4d7ef2749083e5e3aaf41e5b2c6b03a93c237c47 (patch)
tree47076411b64212db0145e73f953325affa9d49dc /src/emu/rendlay.cpp
parentbc951bcfa9c9b4a54e40dc3ab5559531f820fafc (diff)
-luaengine.cpp: Clean up render classes and expose screen image adjustments.
* Started moving Lua class reference to docs. Expecting people to find the class reference material in the source isn’t going to help make it approachable. The docs allow longer explanations, better formatting, and cross reference links. * Added another layout scripting example to the docs. -goldnpkr.cpp: Minor clean-up. * Improved the short names for Witch Card and Witch Game clone sets. * Made Witch Up & Down artwork clickable. * Added working Video Klein sets where the parent is a working Video Klein set to the tiny subtarget. * Removed history from the header comment - we have version control for a readon.
Diffstat (limited to 'src/emu/rendlay.cpp')
-rw-r--r--src/emu/rendlay.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/emu/rendlay.cpp b/src/emu/rendlay.cpp
index 50882d0d214..a71857175e1 100644
--- a/src/emu/rendlay.cpp
+++ b/src/emu/rendlay.cpp
@@ -5064,9 +5064,12 @@ layout_file::layout_file(
}
// load the content of the first script node
- util::xml::data_node const *const scriptnode = mamelayoutnode->get_child("script");
- if (scriptnode)
- emulator_info::layout_script_cb(*this, scriptnode->get_value());
+ if (!m_viewlist.empty())
+ {
+ util::xml::data_node const *const scriptnode = mamelayoutnode->get_child("script");
+ if (scriptnode)
+ emulator_info::layout_script_cb(*this, scriptnode->get_value());
+ }
}
catch (layout_syntax_error const &err)
{