diff options
Diffstat (limited to 'src/emu/mconfig.cpp')
-rw-r--r-- | src/emu/mconfig.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/emu/mconfig.cpp b/src/emu/mconfig.cpp index 78a89feefab..fe9040c3b75 100644 --- a/src/emu/mconfig.cpp +++ b/src/emu/mconfig.cpp @@ -159,6 +159,13 @@ device_t *machine_config::device_add(device_t *owner, const char *tag, device_ty } } +device_t *machine_config::device_add(device_t *owner, const char *tag, device_type type, const XTAL &clock) +{ + std::string msg = std::string("Instantiating device ") + tag; + clock.check(msg); + return device_add(owner, tag, type, clock.value()); +} + //------------------------------------------------- // device_replace - configuration helper to @@ -192,6 +199,14 @@ device_t *machine_config::device_replace(device_t *owner, const char *tag, devic } +device_t *machine_config::device_replace(device_t *owner, const char *tag, device_type type, const XTAL &clock) +{ + std::string msg = std::string("Replacing device ") + tag; + clock.check(msg); + return device_replace(owner, tag, type, clock.value()); +} + + //------------------------------------------------- // device_remove - configuration helper to // remove a device |