Refactor how App is exposed. Expose more functionality to the Plugins.

This commit is contained in:
Martín Lucas Golini
2024-12-31 19:01:32 -03:00
parent 9fc6078c61
commit 469ca05e9f
16 changed files with 395 additions and 180 deletions

View File

@@ -12,12 +12,12 @@ namespace ecode {
PluginManager::PluginManager( const std::string& resourcesPath, const std::string& pluginsPath,
std::shared_ptr<ThreadPool> pool, const OnLoadFileCb& loadFileCb,
const std::function<ProjectBuildManager*()>& getPBM ) :
PluginContextProvider* context ) :
mResourcesPath( resourcesPath ),
mPluginsPath( pluginsPath ),
mThreadPool( pool ),
mLoadFileFn( loadFileCb ),
mProjectBuildManagerFn( getPBM ) {}
mPluginContext( context ),
mLoadFileFn( loadFileCb ) {}
PluginManager::~PluginManager() {
mClosing = true;