mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +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 )
|
||||
{
|
||||
case 0:
|
||||
img = dynamic_cast<harddisk_image_device *>(machine().device(subtag("primary").c_str()));
|
||||
img = subdevice<harddisk_image_device>("primary");
|
||||
break;
|
||||
case 1:
|
||||
img = dynamic_cast<harddisk_image_device *>(machine().device(subtag("slave").c_str()));
|
||||
img = subdevice<harddisk_image_device>("slave");
|
||||
break;
|
||||
}
|
||||
if ( img == nullptr )
|
||||
|
Loading…
Reference in New Issue
Block a user