diff options
Diffstat (limited to 'src/mame/machine/atari_vg.c')
-rw-r--r-- | src/mame/machine/atari_vg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mame/machine/atari_vg.c b/src/mame/machine/atari_vg.c index 197b72df7e6..4c4a13f2e7a 100644 --- a/src/mame/machine/atari_vg.c +++ b/src/mame/machine/atari_vg.c @@ -34,9 +34,8 @@ struct _atari_vg_earom_state INLINE atari_vg_earom_state *get_safe_token(running_device *device) { assert(device != NULL); - assert(device->token != NULL); - assert(device->type == ATARIVGEAROM); - return (atari_vg_earom_state *)device->token; + assert(device->type() == ATARIVGEAROM); + return (atari_vg_earom_state *)downcast<legacy_device_base *>(device)->token(); } @@ -134,7 +133,6 @@ DEVICE_GET_INFO( atari_vg_earom ) /* --- the following bits of info are returned as 64-bit signed integers --- */ case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(atari_vg_earom_state); break; case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = 0; break; - case DEVINFO_INT_CLASS: info->i = DEVICE_CLASS_PERIPHERAL; break; /* --- the following bits of info are returned as pointers to data or functions --- */ case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(atari_vg_earom);break; |