From 95212cff3fc721f0da022c8c1f4171d247870bd7 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Mon, 19 Jun 2017 09:11:39 -0700 Subject: [PATCH] Automatically set the debugger property if an XML file in a "debugger" folder is selected (a convenience feature) --- _includes/machine-engines.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_includes/machine-engines.html b/_includes/machine-engines.html index 1436373b3..134acdb28 100644 --- a/_includes/machine-engines.html +++ b/_includes/machine-engines.html @@ -45,7 +45,12 @@ of our Markdown or XML documents. Examples: 'automount' becomes 'autoMount', 'a {% else %} {% capture machine_app %}{{ machine_type }}{% endcapture %} {% endif %} - {% if machine.debugger %} + {% unless machine.config %} + {% assign machine_config = "machine.xml" %} + {% else %} + {% assign machine_config = machine.config %} + {% endunless %} + {% if machine.debugger or machine_config contains "debugger" %} {% capture machine_file %}{{ machine_type }}-dbg{% endcapture %} {% assign machine_debugger = true %} {% else %} @@ -91,11 +96,6 @@ of our Markdown or XML documents. Examples: 'automount' becomes 'autoMount', 'a {% else %} {% assign machine_autoType = "" %} {% endif %} - {% unless machine.config %} - {% assign machine_config = "machine.xml" %} - {% else %} - {% assign machine_config = machine.config %} - {% endunless %} {% if machine.drives != nil %} {% if machine.drives == "" %} {% assign machine_drives = ",drives:[]" %}