mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Bail when initializing CLAP entry point fails
This commit is contained in:
@@ -93,15 +93,12 @@ ClapBridge::ClapBridge(MainContext& main_context,
|
|||||||
init_success = entry_->init(plugin_dll_path.c_str());
|
init_success = entry_->init(plugin_dll_path.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw std::runtime_error("TODO");
|
if (!init_success) {
|
||||||
|
// `clap_entry->deinit()` is normally called when `entry_` is dropped,
|
||||||
// TODO: Load the CLAP module
|
// but taht shouldn't happen if the entry point was never initialized.
|
||||||
// std::string error;
|
[[maybe_unused]] auto _ = entry_.release();
|
||||||
// module_ = CLAP::Hosting::Win32Module::create(plugin_dll_path, error);
|
throw std::runtime_error("'clap_entry->init()' returned false.");
|
||||||
// if (!module_) {
|
}
|
||||||
// throw std::runtime_error("Could not load the CLAP module for '" +
|
|
||||||
// plugin_dll_path + "': " + error);
|
|
||||||
// }
|
|
||||||
|
|
||||||
sockets_.connect();
|
sockets_.connect();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user