Removed the file pointer from the hdd_t struct;
Partially split off the Logitech Serial Mouse emulation from Microsoft Serial Mouse; Slightly reworked serial port emulation (the two UART's are now device_t's, non-FIFO mode implemented and is now default, FIFO mode reimplemented from scratch so it's now actually correct); Added the emulation of the SiS 85c497 chip to the SiS 85c496/497 chipset; Bugfixes to the emulated Super I/O chips and made them all device_t's now.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
* Implementation of the generic device interface to handle
|
||||
* all devices attached to the emulator.
|
||||
*
|
||||
* Version: @(#)device.c 1.0.22 2018/10/25
|
||||
* Version: @(#)device.c 1.0.23 2018/11/06
|
||||
*
|
||||
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -107,9 +107,9 @@ device_add_common(const device_t *d, void *p, int inst)
|
||||
device_context_t old;
|
||||
|
||||
for (c = 0; c < 256; c++) {
|
||||
if (devices[c] == (device_t *)d) {
|
||||
if (!inst && (devices[c] == (device_t *) d)) {
|
||||
device_log("DEVICE: device already exists!\n");
|
||||
return(NULL);
|
||||
return (NULL);
|
||||
}
|
||||
if (devices[c] == NULL) break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user