Skip to content

Commit

Permalink
get rid of weird readFileSync thing
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammerIn-wonderland committed Sep 15, 2023
1 parent 4bfbf3e commit e33b5c7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Anura.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ class Anura {
provider: new Filer.FileSystem.providers.IndexedDB(),
});

// don't like this... but whatever
// Neither do I, preferably, I'd wrap all the FS things in another way, this is just to make python "workish"
fs.readFileSync = async (path: string) => {
return await new Promise((resolve, reject) => {
return fs.readFile(path, function async(err: any, data: any) {
resolve(new TextDecoder("utf8").decode(data));
});
});
};

const settings = await Settings.new(fs, config.defaultsettings);

const hdd = await InitV86Hdd();
Expand Down

0 comments on commit e33b5c7

Please sign in to comment.