Clean up after #354

This commit is contained in:
copy 2020-09-06 14:01:50 -05:00
parent 07a3cd11c2
commit b79647a73e
3 changed files with 5 additions and 5 deletions

View file

@ -59,7 +59,7 @@
<tr>
<td>Hard drive disk image</td>
<td><input type="file" id="hd_image"><br></td>
<td><input type="file" id="hda_image"><br></td>
</tr>
<!--

View file

@ -152,7 +152,7 @@
settings.hda = { buffer: hda_file };
}
var hdb_file = $("hdb_image").files[0];
var hdb_file = $("hdb_image") && $("hdb_image").files[0];
if(hdb_file)
{
last_file = hdb_file;

View file

@ -44,10 +44,10 @@ var HD_SECTOR_SIZE = 512;
* @param {number} nr
* @param {BusConnector} bus
* */
function IDEDevice(cpu, masterBuffer, slaveBuffer, is_cd, nr, bus)
function IDEDevice(cpu, master_buffer, slave_buffer, is_cd, nr, bus)
{
this.master = new IDEInterface(this, cpu, masterBuffer, is_cd, nr, 0, bus);
this.slave = new IDEInterface(this, cpu, slaveBuffer, is_cd, nr, 1, bus);
this.master = new IDEInterface(this, cpu, master_buffer, is_cd, nr, 0, bus);
this.slave = new IDEInterface(this, cpu, slave_buffer, is_cd, nr, 1, bus);
this.current_interface = this.master;