From e7bc34d41377e7cf4efe7715f06ba08e5cfa078b Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 11 Feb 2015 21:32:10 +0000 Subject: [PATCH] Do not allow to run carla-bridge if bridge is not ok (wine) --- source/bridges-plugin/CarlaBridgePlugin.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/bridges-plugin/CarlaBridgePlugin.cpp b/source/bridges-plugin/CarlaBridgePlugin.cpp index 04e19bd15..b67ba55d2 100644 --- a/source/bridges-plugin/CarlaBridgePlugin.cpp +++ b/source/bridges-plugin/CarlaBridgePlugin.cpp @@ -25,6 +25,7 @@ # include #endif +#include "jackbridge/JackBridge.hpp" #include "juce_core.h" #if defined(CARLA_OS_MAC) || defined(CARLA_OS_WIN) @@ -295,6 +296,15 @@ int main(int argc, char* argv[]) return 1; } + // --------------------------------------------------------------------- + // Test if bridge is working + + if (! jackbridge_is_ok()) + { + carla_stderr("A JACK or Wine library is missing, cannot continue"); + return 1; + } + // --------------------------------------------------------------------- // Get args