Updated README

This commit is contained in:
Jeff Parsons 2014-11-03 09:19:24 -08:00 committed by jeffpar
commit 28a92d6e0b
2 changed files with 10 additions and 1 deletions

View file

@ -251,6 +251,10 @@ If you want server.js to use a different port (the default is 8088), set PORT in
the server:
export PORT=80
or add `--port` to your command-line:
node server.js --logging --console --debug --port=80
A complete list of command-line options can be found in [server.js](server.js).

View file

@ -2718,7 +2718,12 @@ DiskDump.prototype.convertToIMG = function()
}
}
}
if (!fDebug && buf.length < 3000000) { // arbitrary size threshold between diskette images and hard disk images
/*
* Since there's no way (and rightly so) of setting fDebug via the API, I've added the check for
* fJSONComments as another way of disabling "branding" via the API; requesting an IMG file with comments
* is otherwise a nonsensical request.
*/
if (!fDebug && !this.fJSONComments && buf.length < 3000000) { // arbitrary size threshold between diskette images and hard disk images
/*
* Mimic the BPB test in convertToJSON(), because we don't want to blast an OEM string into non-DOS diskette images
*/