diff options
author | 2010-01-19 15:08:18 +0000 | |
---|---|---|
committer | 2010-01-19 15:08:18 +0000 | |
commit | 409add88bbd2fa97f9b3c063884f37abc56ebcee (patch) | |
tree | fbdd9175ae1079cfeb4da3237fd034664f278c4b /src/emu/mconfig.c | |
parent | 576dfd4d9d0a1d9d5b15ba06c0a3d8c6a52d5b03 (diff) |
Convrted the rest of devintrf to classes and moved management
functions into methods of those classes. The most wide-ranging
change was converting device_reset() to device->reset(). Apart
from that it was mostly internal shuffling in the core.
Diffstat (limited to 'src/emu/mconfig.c')
-rw-r--r-- | src/emu/mconfig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/mconfig.c b/src/emu/mconfig.c index ed842db2eec..0de82ffb5f4 100644 --- a/src/emu/mconfig.c +++ b/src/emu/mconfig.c @@ -101,19 +101,19 @@ static void machine_config_detokenize(machine_config *config, const machine_conf TOKEN_UNGET_UINT32(tokens); TOKEN_GET_UINT64_UNPACK2(tokens, entrytype, 8, clock, 32); devtype = TOKEN_GET_PTR(tokens, devtype); - tag = device_build_tag(tempstring, owner, TOKEN_GET_STRING(tokens)); + tag = owner->subtag(tempstring, TOKEN_GET_STRING(tokens)); device = config->devicelist.append(tag, global_alloc(device_config(owner, devtype, tag, clock))); break; case MCONFIG_TOKEN_DEVICE_REMOVE: tag = TOKEN_GET_STRING(tokens); - config->devicelist.remove(device_build_tag(tempstring, owner, tag)); + config->devicelist.remove(owner->subtag(tempstring, tag)); device = NULL; break; case MCONFIG_TOKEN_DEVICE_MODIFY: tag = TOKEN_GET_STRING(tokens); - device = config->devicelist.find(device_build_tag(tempstring, owner, tag)); + device = config->devicelist.find(owner->subtag(tempstring, tag)); if (device == NULL) fatalerror("Unable to find device: tag=%s\n", tempstring.cstr()); break; |