Show startup errors in a desktop notification

This should make it much easier to spot what goes wrong if you're new to
yabridge and don't know where to look yet.
This commit is contained in:
Robbert van der Helm
2021-06-22 17:40:29 +02:00
parent 8873c11e1d
commit 5ffe4773e9
3 changed files with 13 additions and 5 deletions
+4
View File
@@ -53,6 +53,10 @@ extern "C" VST_EXPORT AEffect* VSTPluginMain(
logger.log("Error during initialization:");
logger.log(error.what());
// Also show a desktop notification most people likely won't see the
// above message
send_notification("Failed to initialize VST2 plugin", error.what());
return nullptr;
}
}
+4
View File
@@ -55,6 +55,10 @@ bool InitModule() {
logger.log("Error during initialization:");
logger.log(error.what());
// Also show a desktop notification most people likely won't see the
// above message
send_notification("Failed to initialize VST3 plugin", error.what());
return false;
}
}