work on layers
This commit is contained in:
@@ -143,6 +143,14 @@ namespace Archimedes {
|
||||
}
|
||||
|
||||
virtual void unload(std::string name) {
|
||||
|
||||
//unload modules that depend on the one we are unloading
|
||||
for(std::string s : runOrder) {
|
||||
if(modules[s]->deps.find(name) != modules[s]->deps.end()) {
|
||||
unload(s);
|
||||
}
|
||||
}
|
||||
|
||||
Module* m = modules[name];
|
||||
void* h = m->getHandle();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user