From e33f4182060eb7a9cb00e0b79fa0269352a93433 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 29 Apr 2020 19:12:29 +0200 Subject: [PATCH] Add a notice when the host is in 23-bit mode --- src/wine-host/vst-host.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/wine-host/vst-host.cpp b/src/wine-host/vst-host.cpp index ccb18b21..4f57e705 100644 --- a/src/wine-host/vst-host.cpp +++ b/src/wine-host/vst-host.cpp @@ -17,6 +17,7 @@ #include // Generated inside of build directory +#include #include #include "plugin-bridge.h" @@ -26,9 +27,14 @@ int main(int argc, char* argv[]) { // socket to connect to in plugin/bridge.cpp as the first two arguments of // this process. if (argc < 3) { - std::cerr - << "Usage: yabridge-host.exe " - << std::endl; + std::cerr << "Usage: " +#ifdef USE_BITBRIDGE + << yabridge_wine_host_name_32bit +#else + << yabridge_wine_host_name +#endif + << " " << std::endl; + return 1; } @@ -36,6 +42,9 @@ int main(int argc, char* argv[]) { const std::string socket_endpoint_path(argv[2]); std::cerr << "Initializing yabridge host version " << yabridge_git_version +#ifdef USE_BITBRIDGE + << " (32-bit compatibility mode)" +#endif << std::endl; try { PluginBridge bridge(plugin_dll_path, socket_endpoint_path);