modules should know about their dependencies
This commit is contained in:
@@ -119,9 +119,11 @@ namespace Archimedes {
|
|||||||
|
|
||||||
bool skip = false;
|
bool skip = false;
|
||||||
for(auto it : m->deps) {
|
for(auto it : m->deps) {
|
||||||
|
//std::cout << "Module " << m->getName() << " has dependency " << it.first << std::endl;
|
||||||
for(auto s : runOrder) {
|
for(auto s : runOrder) {
|
||||||
if(s == it.first) {
|
if(s == it.first) {
|
||||||
skip = true;
|
skip = true;
|
||||||
|
m->moduleInstances[s] = modules[s];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user