mirror of
https://github.com/db48x/emularity.git
synced 2026-07-27 19:56:37 +00:00
Write emulator files to MountableFS not OverlayFS
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user