MCPcopy Create free account
hub / github.com/MCJack123/craftos2 / deinitializePlugins

Function deinitializePlugins

src/plugin.cpp:219–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void deinitializePlugins() {
220 userConfig.clear();
221 for (auto& p : loadedPlugins) { if (p.second.second != NULL) {
222 loadingPlugin = p.first.filename().string();
223 const auto plugin_deinit = (void(*)(PluginInfo*))SDL_LoadFunction(p.second.first, "plugin_deinit");
224 if (plugin_deinit != NULL) plugin_deinit(p.second.second);
225 p.second.second = NULL;
226 }}
227 loadingPlugin = "";
228}
229
230void unloadPlugins() {
231 for (const auto& p : loadedPlugins) {

Callers 1

mainFunction · 0.70

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected