From 733b797a3dae6c89b11c9b3f3eaad68995f6ef09 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Wed, 30 Jun 2010 03:46:21 +0000 Subject: Split mame.c into mame.c and machine.c, the latter containing the running_machine definition and implementation. Moved global machine-level operations and accessors into methods on the running_machine class. For the most part, this doesn't affect drivers except for a few occasional bits: mame_get_phase() == machine->phase() add_reset_callback() == machine->add_notifier(MACHINE_NOTIFY_RESET, ...) add_exit_callback() == machine->add_notifier(MACHINE_NOTIFY_EXIT, ...) mame_get_base_datetime() == machine->base_datetime() mame_get_current_datetime() == machine->current_datetime() Cleaned up the region_info class, removing most global region accessors except for memory_region() and memory_region_length(). Again, this doesn't generally affect drivers. --- src/emu/machine/timekpr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emu/machine/timekpr.c') diff --git a/src/emu/machine/timekpr.c b/src/emu/machine/timekpr.c index 4dfafc7370d..3abb9c5dfd0 100644 --- a/src/emu/machine/timekpr.c +++ b/src/emu/machine/timekpr.c @@ -286,7 +286,7 @@ static DEVICE_START(timekeeper) timekeeper_state *c = get_safe_token(device); emu_timer *timer; attotime duration; - mame_system_time systime; + system_time systime; /* validate some basic stuff */ assert(device != NULL); @@ -295,7 +295,7 @@ static DEVICE_START(timekeeper) assert(device->machine != NULL); assert(device->machine->config != NULL); - mame_get_base_datetime(device->machine, &systime); + device->machine->base_datetime(systime); c->device = device; c->control = 0; -- cgit v1.2.3-70-g09d2