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/debug | |
| 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/debug')
| -rw-r--r-- | src/emu/debug/debugcmd.c | 2 | ||||
| -rw-r--r-- | src/emu/debug/debugvw.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c index 80d68a56456..353e7984a5f 100644 --- a/src/emu/debug/debugcmd.c +++ b/src/emu/debug/debugcmd.c @@ -140,7 +140,7 @@ void debug_command_init(running_machine *machine) void *base; /* stop when we run out of items */ - name = state_save_get_indexed_item(itemnum, &base, &valsize, &valcount); + name = state_save_get_indexed_item(machine, itemnum, &base, &valsize, &valcount); if (name == NULL) break; diff --git a/src/emu/debug/debugvw.c b/src/emu/debug/debugvw.c index 0186bbb1c33..89217b70447 100644 --- a/src/emu/debug/debugvw.c +++ b/src/emu/debug/debugvw.c @@ -2458,7 +2458,7 @@ static const memory_subview_item *memory_view_enumerate_subviews(running_machine void *base; /* stop when we run out of items */ - name = state_save_get_indexed_item(itemnum, &base, &valsize, &valcount); + name = state_save_get_indexed_item(machine, itemnum, &base, &valsize, &valcount); if (name == NULL) break; |
