2024-02-26 20:51:08 +01:00
|
|
|
#include <hex/api/plugin_manager.hpp>
|
|
|
|
|
|
|
|
#include <hex/helpers/utils.hpp>
|
2024-06-22 12:57:09 +02:00
|
|
|
#include <hex/helpers/default_paths.hpp>
|
|
|
|
|
2024-02-26 20:51:08 +01:00
|
|
|
|
|
|
|
using namespace hex;
|
|
|
|
class PluginLoader {
|
|
|
|
public:
|
|
|
|
PluginLoader() {
|
2024-06-22 12:57:09 +02:00
|
|
|
for (const auto &dir : paths::Plugins.read()) {
|
2024-02-26 20:51:08 +01:00
|
|
|
PluginManager::addLoadPath(dir);
|
|
|
|
}
|
|
|
|
|
2024-03-13 19:49:04 +01:00
|
|
|
PluginManager::loadLibraries();
|
2024-02-26 20:51:08 +01:00
|
|
|
PluginManager::load();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
static PluginLoader pluginLoader;
|