Skip to content

Commit

Permalink
Write emulator files to MountableFS not OverlayFS
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaicoianu committed Dec 31, 2021
1 parent 05390a4 commit c66ae61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1543,12 +1543,12 @@ var Module = null;
var parts = filename.split('/');
for (var i = 1; i < parts.length; i++) {
var path = '/'+ parts.slice(0, i).join('/');
if (!game_data.fs.existsSync(path)) {
game_data.fs.mkdirSync(path);
if (!mountable.existsSync(path)) {
mountable.mkdirSync(path);
}
}
}
game_data.fs.writeFileSync('/'+ filename, new Buffer(data), null, flag_w, 0x1a4);
mountable.writeFileSync('/'+ filename, new Buffer(data), null, flag_w, 0x1a4);
}
};
}
Expand Down

0 comments on commit c66ae61

Please sign in to comment.