MCPcopy Create free account
hub / github.com/AmelieHeinrich/Termina / Unload

Method Unload

Sources/Termina/Scripting/ScriptModuleManager.cpp:155–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

~ScriptSystemMethod · 0.80

Calls 4

findMethod · 0.80
endMethod · 0.45
GetSymbolMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected