mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
Fixed floppy device issue reading device_displayinfo callback, fixes floppy image loading (no whatsnew)
This commit is contained in:
parent
ff5532b502
commit
b78e135db8
@ -1005,8 +1005,8 @@ DEVICE_GET_INFO(floppy)
|
|||||||
if (device->type() == FLOPPY_APPLE) {
|
if (device->type() == FLOPPY_APPLE) {
|
||||||
info->f = NULL;
|
info->f = NULL;
|
||||||
} else {
|
} else {
|
||||||
if ( device && downcast<const legacy_image_device_base *>(device)->static_config() && ((floppy_interface*)(device))->device_displayinfo) {
|
if ( device && downcast<const legacy_image_device_base *>(device)->static_config() && ((floppy_interface*)(device)->static_config())->device_displayinfo) {
|
||||||
info->f = (genf *) ((floppy_interface*)(device))->device_displayinfo;
|
info->f = (genf *) ((floppy_interface*)(device)->static_config())->device_displayinfo;
|
||||||
} else {
|
} else {
|
||||||
info->f = NULL;
|
info->f = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user