Always print version information in plugin hosts

When the plugin host applications are invoked without arguments. Seems a
bit weird when they only print this when invoked with arguments.
This commit is contained in:
Robbert van der Helm
2021-09-26 18:20:20 +02:00
parent ed6a429c6e
commit 3dd5859799
3 changed files with 20 additions and 11 deletions
+9 -5
View File
@@ -27,6 +27,13 @@
#include "bridges/vst3.h"
#endif
static const std::string host_name = "yabridge host version " +
std::string(yabridge_git_version)
#ifdef __i386__
+ " (32-bit compatibility mode)"
#endif
;
/**
* This is the default plugin host application. It will load the specified
* plugin plugin, and then connect back to the `libyabridge-{vst2,vst3}.so`
@@ -42,6 +49,7 @@ __cdecl
// to connect to and the process ID of the process the native plugin is
// being hosted in as arguments for yabridge-host.exe
if (argc < 5) {
std::cerr << host_name << std::endl;
std::cerr << "Usage: "
#ifdef __i386__
<< yabridge_individual_host_name_32bit
@@ -61,11 +69,7 @@ __cdecl
const std::string socket_endpoint_path(argv[3]);
const pid_t parent_pid = std::stoi(argv[4]);
std::cerr << "Initializing yabridge host version " << yabridge_git_version
#ifdef __i386__
<< " (32-bit compatibility mode)"
#endif
<< std::endl;
std::cerr << "Initializing " << host_name << std::endl;
std::cerr << "Preparing to load " << plugin_type_to_string(plugin_type)
<< " plugin at '" << plugin_location << "'" << std::endl;