| 153 | } |
| 154 | |
| 155 | void ScriptModuleManager::Unload(const std::string& name) |
| 156 | { |
| 157 | auto it = m_Modules.find(name); |
| 158 | if (it == m_Modules.end()) return; |
| 159 | |
| 160 | void* unregSym = it->second.dll->GetSymbol("UnregisterComponents"); |
| 161 | if (unregSym) |
| 162 | reinterpret_cast<void(*)()>(unregSym)(); |
| 163 | |
| 164 | m_Modules.erase(it); |
| 165 | } |
| 166 | |
| 167 | bool ScriptModuleManager::IsLoaded(const std::string& name) const |
| 168 | { |
no test coverage detected