- Add unified Singleton support
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@643 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
8ca3a61730
commit
383889a203
17 changed files with 193 additions and 136 deletions
|
@ -63,8 +63,9 @@ static void load_pyloader_plugin() {
|
|||
// Leaks willingly:
|
||||
Module* pyloader = 0;
|
||||
|
||||
GlobalPreferences::dir_iterator it = GlobalPreferences::instance().modules_dir_begin();
|
||||
while(it != GlobalPreferences::instance().modules_dir_end()) {
|
||||
GlobalPreferences& prefs = GlobalPreferences::get_instance();
|
||||
GlobalPreferences::dir_iterator it = prefs.modules_dir_begin();
|
||||
while(it != prefs.modules_dir_end()) {
|
||||
std::string pyloader_path = Module::build_path(*it, "pyloader");
|
||||
pyloader = new Module(pyloader_path);
|
||||
if(*pyloader) break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue