reload lingering modules by name

This commit is contained in:
2025-04-21 11:53:08 -05:00
parent d253ebb197
commit 8f528c7f95
3 changed files with 24 additions and 10 deletions

View File

@@ -25,13 +25,13 @@ namespace Archimedes {
virtual void run() {}
virtual bool onEvent(const Event& e) { return false; }
virtual void onLoad() {};
virtual void onLoad() {}
virtual void onUnload() {}
operator std::string() const { return name; }
void* getHandle() { return handle; }
//std::any getData(std::string s) { return data[s.c_str()]; };
protected:
std::string name;
@@ -42,7 +42,6 @@ namespace Archimedes {
std::unordered_map<std::string, std::variant<std::string, Module*>> exts;
std::unordered_map<std::string, Module*> moduleInstances;
//std::unordered_map<std::string, std::any> data;
};
}