mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-13 07:42:15 +02:00
Print the version and any VCS info at startup
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
#include "plugin-bridge.h"
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <iostream>
|
||||
|
||||
#include "../common/communication.h"
|
||||
#include "../common/events.h"
|
||||
@@ -136,9 +135,6 @@ PluginBridge::PluginBridge(std::string plugin_dll_path,
|
||||
|
||||
process_replacing_handler =
|
||||
Win32Thread(handle_process_replacing_proxy, this);
|
||||
|
||||
std::cout << "Finished initializing '" << plugin_dll_path << "'"
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
void PluginBridge::handle_dispatch() {
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
// Generated inside of build directory
|
||||
#include <src/common/config/version.h>
|
||||
|
||||
#include "plugin-bridge.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
@@ -32,8 +35,12 @@ int main(int argc, char* argv[]) {
|
||||
const std::string plugin_dll_path(argv[1]);
|
||||
const std::string socket_endpoint_path(argv[2]);
|
||||
|
||||
std::cerr << "Initializing yabridge host version " << yabridge_git_version
|
||||
<< std::endl;
|
||||
try {
|
||||
PluginBridge bridge(plugin_dll_path, socket_endpoint_path);
|
||||
std::cerr << "Finished initializing '" << plugin_dll_path << "'"
|
||||
<< std::endl;
|
||||
|
||||
// Blocks the main thread until the plugin shuts down
|
||||
bridge.handle_dispatch();
|
||||
|
||||
Reference in New Issue
Block a user