diff options
author | Couriersud <couriersud@users.noreply.github.com> | 2014-02-21 19:03:10 +0000 |
---|---|---|
committer | Couriersud <couriersud@users.noreply.github.com> | 2014-02-21 19:03:10 +0000 |
commit | 5c01688be47462a76be7ea1506d57c2a6a578a64 (patch) | |
tree | 9c881566e1d98c02b5c31e5afe8625123bc8a5ba /src/tools | |
parent | 4775726c1ff2b01088fe909ed6532b3ec6ea5c0d (diff) |
Fixed nltool -listdevices. Thanks Oliver.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/nltool.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/nltool.c b/src/tools/nltool.c index ea62c1d5bca..c304d2b1138 100644 --- a/src/tools/nltool.c +++ b/src/tools/nltool.c @@ -217,6 +217,9 @@ static void listdevices() nt.init(); const netlist_factory_t::list_t &list = nt.setup().factory().list(); + nt.setup().start_devices(); + nt.setup().resolve_inputs(); + for (int i=0; i < list.count(); i++) { pstring out = pstring::sprintf("%-20s %s(<id>", list[i]->classname().cstr(), @@ -226,6 +229,7 @@ static void listdevices() net_device_t_base_factory *f = list[i]; netlist_device_t *d = f->Create(); d->init(nt, pstring::sprintf("dummy%d", i)); + d->start_dev(); // get the list of terminals ... for (int j=0; j < d->m_terminals.count(); j++) |