Update PluginProcessor.cpp
Displays warning window if data folder is not foud.
This commit is contained in:
parent
13847a2ac8
commit
2577bad7dc
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue