| 43 | } |
| 44 | |
| 45 | bool PluginManager::loadPluginByName(std::string_view name) |
| 46 | { |
| 47 | auto path = getRuntimeDirectory() / "plugins" / std::string(name); |
| 48 | #if FALCOR_WINDOWS |
| 49 | path.replace_extension(".dll"); |
| 50 | #elif FALCOR_LINUX |
| 51 | path.replace_extension(".so"); |
| 52 | #endif |
| 53 | return loadPlugin(path); |
| 54 | } |
| 55 | |
| 56 | bool PluginManager::loadPlugin(const std::filesystem::path& path) |
| 57 | { |