Skip to content

Commit

Permalink
fix Vst Scanning in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
elieserdejesus committed Nov 28, 2015
1 parent ef0256b commit 7ce954d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Client/VstScanner/WindowsVstPluginScanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ Audio::PluginDescriptor VstPluginScanner::getPluginDescriptor(QFileInfo f){

bool VstPluginScanner::isVstPluginFile(QString path){
QFileInfo file(path);
return file.isFile() && QLibrary.isLibrary(path);
return file.isFile() && QLibrary::isLibrary(path);
}
7 changes: 5 additions & 2 deletions Client/src/StandAloneMainController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void StandalonePluginFinder::on_processFinished(){

void StandalonePluginFinder::on_processError(QProcess::ProcessError error){

qCritical(jtStandalonePluginFinder) << "ERROR:" << error << scanProcess.errorString();
qCritical() << "ERROR:" << error << scanProcess.errorString();
on_processFinished();
}

Expand All @@ -69,6 +69,9 @@ void StandalonePluginFinder::handleProcessError(QString lastScannedPlugin){
QString StandalonePluginFinder::getVstScannerExecutablePath() const{
//try the same jamtaba executable path first
QString scannerExeName = "VstScanner";//In the deploy version the VstScanner and Jamtaba2 executables are in the same folder.
#ifdef Q_OS_WIN
scannerExeName += ".exe";
#endif
if(QFile(scannerExeName).exists()){
return scannerExeName;
}
Expand Down Expand Up @@ -132,7 +135,7 @@ void StandalonePluginFinder::scan(QStringList blackList){

QString scannerExePath = getVstScannerExecutablePath();
if(scannerExePath.isEmpty()){
return;//scanner exe not found!
return;//scanner executable not found!
}

emit scanStarted();
Expand Down

0 comments on commit 7ce954d

Please sign in to comment.