Add the ability to pass through any string property to PCjs declared at the top of the Markdown file

This commit is contained in:
Jeff Parsons 2016-02-01 10:00:05 -08:00
commit 5b7dce1224
7 changed files with 51 additions and 12 deletions

View file

@ -250,6 +250,7 @@ function Debugger(parmsDbg)
/*
* Initialize Debugger message support
*/
this.afnDumpers = [];
this.messageInit(parmsDbg['messages']);
this.sInitCommands = parmsDbg['commands'];
@ -1471,6 +1472,12 @@ if (DEBUGGER) {
this.mouse = cmp.getMachineComponent("Mouse");
if (MAXDEBUG) this.chipset = cmp.getMachineComponent("ChipSet");
/*
* Re-initialize Debugger message support if necessary
*/
var sMessages = cmp.getMachineParm('messages');
if (sMessages) this.messageInit(sMessages);
this.cchAddr = bus.getWidth() >> 2;
this.maskAddr = bus.nBusLimit;
@ -3320,7 +3327,6 @@ if (DEBUGGER) {
this.dbg = this;
this.bitsMessage = this.bitsWarning = Messages.WARN;
this.sMessagePrev = null;
this.afnDumpers = [];
/*
* Internally, we use "key" instead of "keys", since the latter is a method on JavasScript objects,
* but externally, we allow the user to specify "keys"; "kbd" is also allowed as shorthand for "keyboard".

View file

@ -1441,7 +1441,7 @@ FDC.prototype.findDiskette = function(sPath)
}
}
}
return null;
return str.getBaseName(sPath, true);
};
/**