mirror of
https://github.com/holub/mame
synced 2025-05-25 07:15:25 +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,7 +310,8 @@ static DEVICE_START(timekeeper)
|
||||
c->data = auto_alloc_array( device->machine, UINT8, c->size );
|
||||
|
||||
c->default_data = *device->region();
|
||||
assert( device->region()->bytes() == c->size );
|
||||
if (c->default_data)
|
||||
assert( device->region()->bytes() == c->size );
|
||||
|
||||
state_save_register_device_item( device, 0, c->control );
|
||||
state_save_register_device_item( device, 0, c->seconds );
|
||||
|
Loading…
Reference in New Issue
Block a user