| 105 | |
| 106 | |
| 107 | bool load_plugin(const std::string& filename) |
| 108 | { |
| 109 | pugg::detail::Plugin* plugin = new pugg::detail::Plugin(); |
| 110 | if (plugin->load(filename)) { |
| 111 | plugin->register_plugin(this); |
| 112 | _plugins.push_back(plugin); |
| 113 | return true; |
| 114 | } else { |
| 115 | delete plugin; |
| 116 | return false; |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | void clear_drivers() |
| 121 | { |
no test coverage detected