# HG changeset patch # User cannam # Date 1253632844 0 # Node ID e80caada79a89d93d35c993ebdfdaf88dd33b5db # Parent 5139bf30f20885b2b5a7536184e5f78c4c031d42 * Remove nonportable and unnecessary opendir features test (originally inherited from the Vamp SDK's implementation of a similar plugin lookup, but it's been gone from the SDK for ages now) * Comment out some excessive debug output diff -r 5139bf30f208 -r e80caada79a8 PyPlugScanner.cpp --- a/PyPlugScanner.cpp Tue Aug 25 08:49:22 2009 +0000 +++ b/PyPlugScanner.cpp Tue Sep 22 15:20:44 2009 +0000 @@ -179,8 +179,6 @@ struct dirent *e = 0; while ((e = readdir(d))) { - if (!(e->d_type & DT_REG) && (e->d_type != DT_UNKNOWN)) continue; - if (!e->d_name) continue; size_t len = strlen(e->d_name); diff -r 5139bf30f208 -r e80caada79a8 pyvamp-main.cpp --- a/pyvamp-main.cpp Tue Aug 25 08:49:22 2009 +0000 +++ b/pyvamp-main.cpp Tue Sep 22 15:20:44 2009 +0000 @@ -72,21 +72,21 @@ static bool tryPreload(string name) { - cerr << "Trying to load Python interpreter library \"" << name << "\"..."; +// cerr << "Trying to load Python interpreter library \"" << name << "\"..."; #ifdef _WIN32 void *lib = LoadLibrary(name.c_str()); if (!lib) { - cerr << " failed" << endl; +// cerr << " failed" << endl; return false; } #else void *lib = dlopen(name.c_str(), RTLD_NOW | RTLD_GLOBAL); if (!lib) { - cerr << " failed" << endl; +// cerr << " failed" << endl; return false; } #endif - cerr << " succeeded" << endl; +// cerr << " succeeded" << endl; return true; }