Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 2, 2016, 3:15:04 PM (9 years ago)
Author:
landauf
Message:

moved code for loading/unloading a plugin into separate functions

File:
1 edited

Legend:

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

    r10580 r11014  
    9090        Plugin* plugin = this->plugins_[name];
    9191        if (plugin != NULL)
    92             plugin->load();
     92            plugin->reference();
    9393        else
    9494            orxout(internal_warning) << "Cannot find plugin with name " << name << endl;
     
    9999        Plugin* plugin = this->plugins_[name];
    100100        if (plugin != NULL)
    101             plugin->unload();
     101            plugin->dereference();
    102102        else
    103103            orxout(internal_warning) << "Cannot find plugin with name " << name << endl;
Note: See TracChangeset for help on using the changeset viewer.