2
0
Fork 0

Update PluginProcessor.cpp

Displays warning window if data folder is not foud.
This commit is contained in:
George Reales 2020-04-19 13:04:37 +02:00
parent 13847a2ac8
commit 2577bad7dc

View file

@ -988,6 +988,12 @@ File ObxdAudioProcessor::getCurrentBankFile() const
File ObxdAudioProcessor::getDocumentFolder() const
{
File folder = File::getSpecialLocation(File::userDocumentsDirectory).getChildFile("discoDSP").getChildFile("OB-Xd");
if (! folder.exists())
{
NativeMessageBox::showMessageBox(AlertWindow::WarningIcon, "Error", "Documents > discoDSP > OB-Xd folder not found.");
}
if (folder.isSymbolicLink())
folder = folder.getLinkedTarget();
return folder;