keyevent reading moved to the tvdos itself

This commit is contained in:
minjaesong
2021-09-24 11:30:55 +09:00
parent 96e23d9019
commit 012bc44845
10 changed files with 632 additions and 70 deletions

View File

@@ -3,10 +3,10 @@ if (exec_args[1] === undefined) {
return 1;
}
let fileOpened = filesystem.open(_G.shell.getCurrentDrive(), _G.shell.resolvePathInput(exec_args[1]).string, "R");
if (!fileOpened) {
let fileOpenedStatus = filesystem.open(_G.shell.getCurrentDrive(), _G.shell.resolvePathInput(exec_args[1]).string, "R");
if (fileOpenedStatus != 0) {
printerrln(_G.shell.resolvePathInput(exec_args[1]).string+": cannot open");
return 1;
return fileOpenedStatus;
}
let fileContent = filesystem.readAll(_G.shell.getCurrentDrive());
let visible = "";