Refined first refinement of new plugin design. Tested successfully adding/removing/running games on Linux with only one engine plugin loaded at a time

svn-id: r52026
This commit is contained in:
Tony Puccinelli 2010-08-12 06:00:19 +00:00
parent 2cfb67432a
commit 89d76fe5a5
3 changed files with 50 additions and 16 deletions

View file

@ -345,7 +345,8 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
}
#if defined(NEW_PLUGIN_DESIGN_FIRST_REFINEMENT) && defined(DYNAMIC_MODULES) //note: I'm going to refactor this name later :P
// Don't load the plugins initially in this case.
// Only load non-engine plugins and first engine plugin initially in this case.
PluginManager::instance().loadFirstPlugin(); //This should be the only call to loadFirstPlugin external to the PluginManager class.
#else
// Load the plugins.
PluginManager::instance().loadPlugins();