Automatically set the debugger property if an XML file in a "debugger" folder is selected (a convenience feature)
This commit is contained in:
parent
d527e1bbe3
commit
187e09dd48
1 changed files with 2 additions and 1 deletions
|
|
@ -1198,10 +1198,11 @@ MarkOut.prototype.convertMDMachineLinks = function(sBlock)
|
|||
if (this.aMachineDefs[sMachineID]) {
|
||||
machine = this.aMachineDefs[sMachineID];
|
||||
sMachineType = machine['type'] || "PCx86";
|
||||
sMachineXMLFile = machine['config'] || this.sMachineFile || "machine.xml";
|
||||
if (sMachineXMLFile.indexOf("debugger") >= 0) machine['debugger'] = "true";
|
||||
sMachineOptions = ((sMachineType.indexOf("-dbg") > 0 || machine['debugger'] == "true")? "debugger" : "");
|
||||
if (machine['sticky']) sMachineOptions += (sMachineOptions? "," : "") + "sticky";
|
||||
sMachineType = sMachineType.replace("-dbg", "");
|
||||
sMachineXMLFile = machine['config'] || this.sMachineFile || "machine.xml";
|
||||
sMachineXSLFile = machine['template'] || "";
|
||||
sMachineVersion = ((machine['uncompiled'] == "true")? "uncompiled" : "");
|
||||
sMachineParms = machine['parms'] || "";
|
||||
|
|
|
|||
Loading…
Reference in a new issue