diff options
author | 2011-03-28 09:10:17 +0000 | |
---|---|---|
committer | 2011-03-28 09:10:17 +0000 | |
commit | af071893a63485d60b1c52d9f15501d2213c8e5e (patch) | |
tree | 16635e21ef67490e0e585e45e4c8698ff520d073 /src/emu/debug/debugcpu.c | |
parent | 58f70e918446d6940d8192adc240b4d60be66c3d (diff) |
Cleanup of machine.h. Shuffled some fields around, and moved several
to private member variables with accessors:
machine->m_respool ==> machine->respool()
machine->config ==> machine->config()
machine->gamedrv ==> machine->system()
machine->m_regionlist ==> machine->first_region()
machine->sample_rate ==> machine->sample_rate()
Also converted internal lists to use simple_list.
Diffstat (limited to 'src/emu/debug/debugcpu.c')
-rw-r--r-- | src/emu/debug/debugcpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c index e8cd3830303..d530745c6ed 100644 --- a/src/emu/debug/debugcpu.c +++ b/src/emu/debug/debugcpu.c @@ -337,7 +337,7 @@ bool debug_comment_save(running_machine *machine) xml_data_node *systemnode = xml_add_child(commentnode, "system", NULL); if (systemnode == NULL) throw emu_exception(); - xml_set_attribute(systemnode, "name", machine->gamedrv->name); + xml_set_attribute(systemnode, "name", machine->system().name); // for each device bool found_comments = false; @@ -413,7 +413,7 @@ bool debug_comment_load(running_machine *machine) // check to make sure the file is applicable xml_data_node *systemnode = xml_get_sibling(commentnode->child, "system"); const char *name = xml_get_attribute_string(systemnode, "name", ""); - if (strcmp(name, machine->gamedrv->name) != 0) + if (strcmp(name, machine->system().name) != 0) throw emu_exception(); // iterate over devices |