mirror of
https://github.com/holub/mame
synced 2025-05-29 00:53:09 +03:00
timekpr.c: Not assert in case there is no default data defined (fixes CD-i based hardware games) (no whatsnew)
This commit is contained in:
parent
018a21fa53
commit
10b0e0236e
@ -310,6 +310,7 @@ static DEVICE_START(timekeeper)
|
|||||||
c->data = auto_alloc_array( device->machine, UINT8, c->size );
|
c->data = auto_alloc_array( device->machine, UINT8, c->size );
|
||||||
|
|
||||||
c->default_data = *device->region();
|
c->default_data = *device->region();
|
||||||
|
if (c->default_data)
|
||||||
assert( device->region()->bytes() == c->size );
|
assert( device->region()->bytes() == c->size );
|
||||||
|
|
||||||
state_save_register_device_item( device, 0, c->control );
|
state_save_register_device_item( device, 0, c->control );
|
||||||
|
Loading…
Reference in New Issue
Block a user