Mercurial > hg > sonic-visualiser
comparison main/main.cpp @ 1148:b3b5885e7c2c pluginscan
Check for plugin scan helper checker helper program in suitable directory, & tidy up warning messages somewhat
author | Chris Cannam |
---|---|
date | Fri, 15 Apr 2016 16:13:06 +0100 |
parents | a1ce253dc90e |
children | 2e83525cf638 |
comparison
equal
deleted
inserted
replaced
1147:29c6a7cb114e | 1148:b3b5885e7c2c |
---|---|
332 application.installTranslator(&svTranslator); | 332 application.installTranslator(&svTranslator); |
333 | 333 |
334 StoreStartupLocale(); | 334 StoreStartupLocale(); |
335 | 335 |
336 // Make known-plugins query as early as possible after showing | 336 // Make known-plugins query as early as possible after showing |
337 // splash screen | 337 // splash screen. This depends on our helper executable, which |
338 PluginScan::getInstance()->scan(); | 338 // must exist either in the same directory as this one or |
339 // (preferably) a subdirectory called "checker". | |
340 QString myDir = application.applicationDirPath(); | |
341 QString helperPath = myDir + "/checker/plugin-checker-helper"; | |
342 QString helperSuffix = ""; | |
343 #ifdef _WIN32 | |
344 helperSuffix = ".exe"; | |
345 #endif | |
346 if (!QFile(helperPath + helperSuffix).exists()) { | |
347 helperPath = myDir + "/plugin-checker-helper"; | |
348 } | |
349 helperPath += helperSuffix; | |
350 PluginScan::getInstance()->scan(helperPath); | |
339 | 351 |
340 // Permit size_t and PropertyName to be used as args in queued signal calls | 352 // Permit size_t and PropertyName to be used as args in queued signal calls |
341 qRegisterMetaType<PropertyContainer::PropertyName>("PropertyContainer::PropertyName"); | 353 qRegisterMetaType<PropertyContainer::PropertyName>("PropertyContainer::PropertyName"); |
342 | 354 |
343 MainWindow::SoundOptions options = MainWindow::WithEverything; | 355 MainWindow::SoundOptions options = MainWindow::WithEverything; |