mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Add suggestion to rerun sync after startup failure
This commit is contained in:
@@ -22,6 +22,8 @@
|
|||||||
#include "../common/logging/common.h"
|
#include "../common/logging/common.h"
|
||||||
#include "bridges/vst2.h"
|
#include "bridges/vst2.h"
|
||||||
|
|
||||||
|
using namespace std::literals::string_literals;
|
||||||
|
|
||||||
#define VST_EXPORT __attribute__((visibility("default")))
|
#define VST_EXPORT __attribute__((visibility("default")))
|
||||||
|
|
||||||
// The main entry point for VST2 plugins should be called `VSTPluginMain``. The
|
// The main entry point for VST2 plugins should be called `VSTPluginMain``. The
|
||||||
@@ -54,8 +56,12 @@ extern "C" VST_EXPORT AEffect* VSTPluginMain(
|
|||||||
|
|
||||||
// Also show a desktop notification most people likely won't see the
|
// Also show a desktop notification most people likely won't see the
|
||||||
// above message
|
// above message
|
||||||
send_notification("Failed to initialize VST2 plugin", error.what(),
|
send_notification(
|
||||||
true);
|
"Failed to initialize VST2 plugin",
|
||||||
|
error.what() +
|
||||||
|
"\nIf you just updated yabridge, then you may need to rerun "
|
||||||
|
"'yabridgectl sync' first to update your plugins."s,
|
||||||
|
true);
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
#include "bridges/vst3.h"
|
#include "bridges/vst3.h"
|
||||||
|
|
||||||
|
using namespace std::literals::string_literals;
|
||||||
|
|
||||||
// FIXME: The VST3 SDK as of version 3.7.2 now includes multiple local functions
|
// FIXME: The VST3 SDK as of version 3.7.2 now includes multiple local functions
|
||||||
// called `InitModule` and `DeinitModule`: one in the new
|
// called `InitModule` and `DeinitModule`: one in the new
|
||||||
// `public.sdk/source/main/initmodule.cpp`, and the existing ones in the
|
// `public.sdk/source/main/initmodule.cpp`, and the existing ones in the
|
||||||
@@ -57,8 +59,12 @@ bool InitModule() {
|
|||||||
|
|
||||||
// Also show a desktop notification most people likely won't see the
|
// Also show a desktop notification most people likely won't see the
|
||||||
// above message
|
// above message
|
||||||
send_notification("Failed to initialize VST3 plugin", error.what(),
|
send_notification(
|
||||||
true);
|
"Failed to initialize VST3 plugin",
|
||||||
|
error.what() +
|
||||||
|
"\nIf you just updated yabridge, then you may need to rerun "
|
||||||
|
"'yabridgectl sync' first to update your plugins."s,
|
||||||
|
true);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user