mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-15 15:36:05 +09:00
getting rid of old filesystem functions
This commit is contained in:
@@ -39,9 +39,10 @@ let bulletinShown = false;
|
||||
let cursoringCol = 0;
|
||||
|
||||
// load existing file if it's there
|
||||
let editingExistingFile = (0 == filesystem.open(driveLetter, filePath, "R"));
|
||||
let file = files.open(`${driveLetter}:/${filePath}`)
|
||||
let editingExistingFile = file.exists
|
||||
if (editingExistingFile) {
|
||||
textbuffer = filesystem.readAll(driveLetter).split("\n");
|
||||
textbuffer = file.sread().split("\n")
|
||||
}
|
||||
|
||||
let windowWidth = 0;
|
||||
@@ -197,8 +198,7 @@ function gotoText() {
|
||||
// FUNCTIONING FUNCTIONS (LOL) //
|
||||
|
||||
function writeout() {
|
||||
filesystem.open(driveLetter, filePath, "W");
|
||||
filesystem.write(driveLetter, textbuffer.join('\n'));
|
||||
file.swrite(textbuffer.join("\n"))
|
||||
}
|
||||
|
||||
// KEYBOARDING FUNCTIONS //
|
||||
|
||||
Reference in New Issue
Block a user