1
0
mirror of synced 2024-12-19 19:15:55 +01:00
ImHex/tests/plugins/source/plugins.cpp
iTrooz 47362559ef
tests: Add infrastructure for testing plugins (#1538)
This PR adds a test architecture to be able to test plugins

Main infrastructure done by @WerWolv

---------

Co-authored-by: WerWolv <werwolv98@gmail.com>
2024-02-26 20:51:08 +01:00

16 lines
351 B
C++

#include <hex/api/plugin_manager.hpp>
#include <hex/helpers/utils.hpp>
using namespace hex;
class PluginLoader {
public:
PluginLoader() {
for (const auto &dir : fs::getDefaultPaths(fs::ImHexPath::Plugins)) {
PluginManager::addLoadPath(dir);
}
PluginManager::load();
}
};
static PluginLoader pluginLoader;