mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
bus/isa/hdc.cpp: Eliminate machine().device (nw)
This commit is contained in:
parent
6ba8b0f1ae
commit
db82adaa99
@ -216,10 +216,10 @@ hard_disk_file *xt_hdc_device::pc_hdc_file(int id)
|
|||||||
switch( id )
|
switch( id )
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
img = dynamic_cast<harddisk_image_device *>(machine().device(subtag("primary").c_str()));
|
img = subdevice<harddisk_image_device>("primary");
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
img = dynamic_cast<harddisk_image_device *>(machine().device(subtag("slave").c_str()));
|
img = subdevice<harddisk_image_device>("slave");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ( img == nullptr )
|
if ( img == nullptr )
|
||||||
|
Loading…
Reference in New Issue
Block a user