Permalink
Browse files

Merge pull request #44 from pengan1987/master

Support multiple floppy disks for SAE
  • Loading branch information...
db48x committed Oct 1, 2018
2 parents 2145df1 + 58e2ff2 commit abaefa7dd37a8677e77a2c80b39173e9068f0a85
Showing with 5 additions and 3 deletions.
  1. +5 −3 loader.js
View
@@ -967,9 +967,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 () {

0 comments on commit abaefa7

Please sign in to comment.