| 217 | } |
| 218 | |
| 219 | void 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 | |
| 230 | void unloadPlugins() { |
| 231 | for (const auto& p : loadedPlugins) { |