work on layers

This commit is contained in:
2025-04-09 10:52:23 -05:00
parent 3a797fb19a
commit 42b5a53b89
8 changed files with 102 additions and 63 deletions

View File

@@ -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();