DOS apps to use _G.shell.resolvePathInput for opening a file

This commit is contained in:
minjaesong
2022-09-24 01:51:57 +09:00
parent c598b6633d
commit f9eecab830
5 changed files with 6 additions and 12 deletions

View File

@@ -25,8 +25,6 @@ else {
println("File to edit?");
filename = read();
}
let driveLetter = _G.shell.getCurrentDrive();
let filePath = _G.shell.getPwdString() + filename;
let contentChanged = false;
@@ -41,7 +39,7 @@ let bulletinShown = false;
let cursoringCol = 0;
// load existing file if it's there
let file = files.open(`${driveLetter}:/${filePath}`)
let file = files.open(`${_G.shell.resolvePathInput(filename).full}`)
let editingExistingFile = file.exists
if (editingExistingFile) {
textbuffer = file.sread().split("\n")