summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/config.c')
-rw-r--r--src/emu/config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/config.c b/src/emu/config.c
index 3f1b7e18d93..070f3cd4cc7 100644
--- a/src/emu/config.c
+++ b/src/emu/config.c
@@ -235,13 +235,13 @@ static int config_load_xml(running_machine &machine, emu_file &file, int which_t
case CONFIG_TYPE_CONTROLLER:
{
- const game_driver *clone_of;
+ int clone_of;
/* match on: default, game name, source file name, parent name, grandparent name */
if (strcmp(name, "default") != 0 &&
strcmp(name, machine.system().name) != 0 &&
strcmp(name, srcfile) != 0 &&
- ((clone_of = driver_get_clone(&machine.system())) == NULL || strcmp(name, clone_of->name) != 0) &&
- (clone_of == NULL || ((clone_of = driver_get_clone(clone_of)) == NULL) || strcmp(name, clone_of->name) != 0))
+ ((clone_of = driver_list::clone(machine.system())) == -1 || strcmp(name, driver_list::driver(clone_of).name) != 0) &&
+ (clone_of == -1 || ((clone_of = driver_list::clone(clone_of)) == -1) || strcmp(name, driver_list::driver(clone_of).name) != 0))
continue;
break;
}