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>
This commit is contained in:
iTrooz
2024-02-26 20:51:08 +01:00
committed by GitHub
parent 032ef0722d
commit 47362559ef
28 changed files with 205 additions and 69 deletions

View File

@@ -0,0 +1,16 @@
#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;