Support multiple disks for SAE

This commit is contained in:
Pengan Zhou
2018-09-28 21:14:35 -07:00
parent 1404e481ad
commit 58e2ff2805
+5 -3
View File
@@ -933,9 +933,11 @@ var Module = null;
this._cfg.memory.extRom.size = this._cfg.memory.extRom.data.length;
}
this._cfg.floppy.drive[0].file.name = game_data.floppy[0];
this._cfg.floppy.drive[0].file.data = game_data.fs.readFileSync('/'+game_data.floppy[0], null, flag_r);
this._cfg.floppy.drive[0].file.size = this._cfg.floppy.drive[0].file.data.length;
for (var i = 0; i < Object.keys(game_data.floppy).length; i++) {
this._cfg.floppy.drive[i].file.name = game_data.floppy[i];
this._cfg.floppy.drive[i].file.data = game_data.fs.readFileSync('/' + game_data.floppy[i], null, flag_r);
this._cfg.floppy.drive[i].file.size = this._cfg.floppy.drive[i].file.data.length;
}
}
SAERunner.prototype.start = function () {