| 17 | } _; |
| 18 | |
| 19 | bool PluginMgr::load(const std::filesystem::path& library_path) |
| 20 | { |
| 21 | LogFunc << VAR(library_path); |
| 22 | |
| 23 | if (std::filesystem::is_directory(library_path)) { |
| 24 | bool ret = false; |
| 25 | for (auto& entry : std::filesystem::recursive_directory_iterator(library_path)) { |
| 26 | ret |= load_and_parse(std::filesystem::absolute(entry.path())); |
| 27 | } |
| 28 | |
| 29 | return ret; |
| 30 | } |
| 31 | else { |
| 32 | return load_and_parse(library_dir() / library_path) || load_and_parse(library_path); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | std::optional<boost::dll::shared_library> PluginMgr::load_dll(const std::filesystem::path& library_path) |
| 37 | { |
no outgoing calls
no test coverage detected