set command for command.js

This commit is contained in:
minjaesong
2020-11-05 14:25:47 +09:00
parent 8643f354e6
commit e201f591b8
3 changed files with 73 additions and 10 deletions

View File

@@ -8,10 +8,18 @@ _TVDOS.DRIVES["A"] = _BIOS.FIRST_BOOTABLE_PORT;
//TODO
_TVDOS.defaults = {
path: [
"\\tvdos\\bin\\"
]
_TVDOS.getPath = function() {
return _TVDOS.variables.PATH.split(';');
};
// initial values
_TVDOS.variables = {
DOSDIR: "\\tvdos\\",
LANG: "EN",
PATH: "\\tvdos\\bin\\",
PATHEXT: ".com;.bat;.js",
HELPPATH: "\\tvdos\\help\\",
OS_NAME: "Terrarum Virtual DOS",
OS_VERSION: _TVDOS.VERSION
};
Object.freeze(_TVDOS);
@@ -80,6 +88,7 @@ var execApp = function(cmdsrc, args) {
///////////////////////////////////////////////////////////////////////////////
// Boot script
serial.println("TVDOS.SYS initialised, running boot script...");
filesystem.open("A", "tvdos/bin/command.js", "R");
let cmdsrc = filesystem.readAll("A");
execApp(cmdsrc, ["", "/c", "\\AUTOEXEC.BAT"]);