mirror of
https://github.com/db48x/emularity.git
synced 2026-09-15 02:52:57 +00:00
Support multiple disks for SAE
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user