Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11017 for code/trunk/src


Ignore:
Timestamp:
Jan 2, 2016, 6:13:28 PM (9 years ago)
Author:
landauf
Message:

write warning to console if unloading of plugins is disabled

Location:
code/trunk/src/libraries/core/module
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/module/PluginManager.cc

    r11016 r11017  
    8181    void PluginManager::setConfigValues()
    8282    {
    83         SetConfigValue(bMerelyDeactivatePlugins_, MERELY_DEACTIVATE_PLUGINS);
     83        SetConfigValue(bMerelyDeactivatePlugins_, MERELY_DEACTIVATE_PLUGINS).callback(this, &PluginManager::changedConfigValue);
     84    }
     85
     86    void PluginManager::changedConfigValue()
     87    {
     88        if (this->bMerelyDeactivatePlugins_)
     89        {
     90            orxout(internal_warning) << "Orxonox is configured to NOT completely unload plugins."
     91                " This means that it's not possible to re-compile and reload a plugin at runtime." << endl;
     92        }
    8493    }
    8594
  • code/trunk/src/libraries/core/module/PluginManager.h

    r11016 r11017  
    5959
    6060        private:
     61            void changedConfigValue();
     62
    6163            std::map<std::string, Plugin*> plugins_;
    6264            std::map<std::string, PluginReference*> references_; // references that were created by console command
Note: See TracChangeset for help on using the changeset viewer.