Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 27, 2015, 11:05:18 PM (9 years ago)
Author:
landauf
Message:

added PluginManager to load/unload plugins at runtime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/Core.cc

    r10551 r10552  
    7676#include "module/ModuleInstance.h"
    7777#include "module/StaticInitializationManager.h"
     78#include "module/PluginManager.h"
    7879#include "CoreStaticInitializationHandler.h"
    7980#include "UpdateListener.h"
     
    111112        , bGraphicsLoaded_(false)
    112113        , staticInitHandler_(NULL)
     114        , pluginManager_(NULL)
    113115        , rootModule_(NULL)
    114116        , config_(NULL)
     
    197199        this->staticInitHandler_->initInstances(this->rootModule_);
    198200        this->staticInitHandler_->setInitInstances(true);
     201
     202        // Create plugin manager and search for plugins
     203        this->pluginManager_ = new PluginManager();
     204        this->pluginManager_->findPlugins();
    199205
    200206        // Loader
     
    248254        safeObjectDelete(&configFileManager_);
    249255        safeObjectDelete(&signalHandler_);
     256        safeObjectDelete(&pluginManager_);
    250257        Context::getRootContext()->unregisterObject(); // unregister context from object lists - otherwise the root context would be destroyed while unloading the root module
    251258        if (this->rootModule_)
Note: See TracChangeset for help on using the changeset viewer.