/*
- * (c) 2010 Technische Universität Dresden
+ * (c) 2010 Alexander Warg <warg@os.inf.tu-dresden.de>
+ * economic rights: Technische Universität Dresden (Germany)
+ *
* This file is part of TUD:OS and distributed under the terms of the
* GNU General Public License 2.
* Please see the COPYING-GPL-2 file for details.
for (Resource_list::iterator i = d->resources()->begin();
i != d->resources()->end(); ++i)
{
+ if (!*i)
+ continue;
+
if (i->disabled())
continue;
- add_resource(*i);
+ Resource *vr = Resource_factory::create(*i, false);
+ if (!vr)
+ vr = *i;
+
+ add_resource(vr);
}
}