diff options
author | 2008-12-05 08:00:13 +0000 | |
---|---|---|
committer | 2008-12-05 08:00:13 +0000 | |
commit | 3c6eacc96f5ede7feec56e345e70af28ba3bed42 (patch) | |
tree | 5bea0770d49222e8e0a8836dabb41e0ce4d91008 /src/emu/mame.h | |
parent | 9c88aa96d05c4c88908a571b7581dfc16b9e7e5e (diff) |
Changed save state system to accept machine parameters where
appropriate, and to keep all global variables hanging off the
machine structure. Once again, this means all state registration
call sites have been touched:
- state_save_register_global* now takes a machine parameter
- state_save_register_item* now takes a machine parameter
- added new state_save_register_device_item* which now uses
the device name and tag to generate the base name
Extended the fake sound devices to have more populated fields.
Modified sound cores to use tags from the devices and simplified
the start function.
Renumbered CPU and sound get/set info constants to align with
the device constants, and shared values where they were perfectly
aligned.
Set the type field in the fake device_configs for CPU and sound
chips to a get_info stub which calls through to the CPU and sound
specific get_info functions. This means the device_get_info()
functions work for CPU and sound cores, even in their fake state.
Changed device information getters from device_info() to
device_get_info() to match the CPU and sound macros.
Diffstat (limited to 'src/emu/mame.h')
-rw-r--r-- | src/emu/mame.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/mame.h b/src/emu/mame.h index afac454a7ad..d8f5826d3ba 100644 --- a/src/emu/mame.h +++ b/src/emu/mame.h @@ -127,6 +127,7 @@ typedef void (*output_callback_func)(void *param, const char *format, va_list ar /* forward type declarations */ typedef struct _mame_private mame_private; typedef struct _timer_private timer_private; +typedef struct _state_private state_private; typedef struct _memory_private memory_private; typedef struct _palette_private palette_private; typedef struct _streams_private streams_private; @@ -173,6 +174,7 @@ struct _running_machine /* internal core information */ mame_private * mame_data; /* internal data from mame.c */ timer_private * timer_data; /* internal data from timer.c */ + state_private * state_data; /* internal data from state.c */ memory_private * memory_data; /* internal data from memory.c */ palette_private * palette_data; /* internal data from palette.c */ streams_private * streams_data; /* internal data from streams.c */ |