From 6179fddbc8eedc4a912916ba7eecec30f3e49b1f Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 2 Dec 2020 20:00:50 +0100 Subject: [PATCH] Do some more testing and print some plugin info --- src/wine-host/bridges/vst3.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/wine-host/bridges/vst3.cpp b/src/wine-host/bridges/vst3.cpp index 920f0f5a..11535ba9 100644 --- a/src/wine-host/bridges/vst3.cpp +++ b/src/wine-host/bridges/vst3.cpp @@ -19,9 +19,6 @@ #include "../boost-fix.h" // TODO: Do something with this, I just wanted to get the build working -// TODO: Check if this can load both regular Unix style paths with Wine. Oh and -// check if it works at all. -// TODO: Check if now works with Winelib, or replace with Boost #include void justdewit(const std::string& path) { @@ -30,7 +27,13 @@ void justdewit(const std::string& path) { VST3::Hosting::Win32Module::create(path, error); if (plugin) { - std::cerr << "Hooray!" << std::endl; + // TODO: They use some thin wrappers around the interfaces, we can + // probably reuse these instead of having to make our own + VST3::Hosting::FactoryInfo info = plugin->getFactory().info(); + std::cout << "Plugin name: " << plugin->getName() << std::endl; + std::cout << "Vendor: " << info.vendor() << std::endl; + std::cout << "URL: " << info.url() << std::endl; + std::cout << "Send spam to: " << info.email() << std::endl; } else { std::cerr << "Ohnoes!" << std::endl; std::cerr << error << std::endl;