Find the correct library file from the chainloader

Instead of using this hardcdoed path.
This commit is contained in:
Robbert van der Helm
2022-04-16 19:26:27 +02:00
parent 85989f4c1d
commit d73a0041eb
8 changed files with 151 additions and 22 deletions
+1
View File
@@ -142,6 +142,7 @@ class PluginBridge {
<< " (32-bit build)"
#endif
<< std::endl;
// TODO: Show this library's path now that we're chainloading
init_msg << "host: '" << plugin_host_->path().string() << "'"
<< std::endl;
init_msg << "plugin: '" << info_.windows_plugin_path_.string()
+2 -2
View File
@@ -52,8 +52,8 @@ void log_init_error(const std::exception& error, const fs::path& plugin_path) {
logger.log(error.what());
logger.log("");
// Also show a desktop notification most people likely won't see the above
// message
// Also show a desktop notification since most people likely won't see the
// above message
send_notification(
"Failed to initialize VST2 plugin",
error.what() +
+2 -2
View File
@@ -77,8 +77,8 @@ void log_init_exception(const std::exception& error,
logger.log(error.what());
logger.log("");
// Also show a desktop notification most people likely won't see the above
// message
// Also show a desktop notification since most people likely won't see the
// above message
// FIXME: Go through these messages and update them to reflect the
// chainloading changes
send_notification(