mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-15 00:44:05 +09:00
DOS apps to use _G.shell.resolvePathInput for opening a file
This commit is contained in:
@@ -10,10 +10,8 @@ else {
|
||||
println("File to print out?")
|
||||
filename = read()
|
||||
}
|
||||
let driveLetter = _G.shell.getCurrentDrive()
|
||||
let filePath = _G.shell.getPwdString() + filename
|
||||
|
||||
let file = files.open(`${driveLetter}:${filePath}`)
|
||||
let file = files.open(`${_G.shell.resolvePathInput(filename).full}`)
|
||||
|
||||
if (!file.exists) {
|
||||
printerrln("File not found")
|
||||
|
||||
Reference in New Issue
Block a user