mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
device_interface: Eliminate device pointer conversion (nw)
This commit is contained in:
parent
61d941630e
commit
5b5d527822
@ -241,7 +241,7 @@ DEVICE_IMAGE_LOAD_MEMBER( ti990_hdc_device, ti990_hd )
|
||||
*/
|
||||
DEVICE_IMAGE_UNLOAD_MEMBER( ti990_hdc_device, ti990_hd )
|
||||
{
|
||||
int id = get_id_from_device( image );
|
||||
int id = get_id_from_device(&image.device());
|
||||
hd_unit_t *d;
|
||||
|
||||
d = &m_d[id];
|
||||
|
@ -635,7 +635,6 @@ public:
|
||||
device_t &device() { return m_device; }
|
||||
const device_t &device() const { return m_device; }
|
||||
operator device_t &() { return m_device; }
|
||||
operator device_t *() { return &m_device; }
|
||||
|
||||
// iteration helpers
|
||||
device_interface *interface_next() const { return m_interface_next; }
|
||||
|
@ -341,7 +341,7 @@ DEVICE_IMAGE_LOAD_MEMBER(n64_mess_state,n64_cart)
|
||||
}
|
||||
}
|
||||
|
||||
periphs->m_nvram_image = image;
|
||||
periphs->m_nvram_image = &image.device();
|
||||
|
||||
logerror("cart length = %d\n", length);
|
||||
|
||||
|
@ -111,7 +111,7 @@ static void _atari_load_proc(device_image_interface &image, bool is_created)
|
||||
|
||||
void atari_fdc_device::atari_load_proc(device_image_interface &image, bool is_created)
|
||||
{
|
||||
int id = floppy_get_drive(image);
|
||||
int id = floppy_get_drive(&image.device());
|
||||
int size, i;
|
||||
|
||||
m_drv[id].image = std::make_unique<uint8_t[]>(MAXSIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user