Clean up after #354
This commit is contained in:
parent
07a3cd11c2
commit
b79647a73e
|
@ -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>
|
||||
|
||||
<!--
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue