mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Don't store the Wine version as a field
It's only needed for the initialisation message, and it doesn't throw so doing this later shouldn't make a difference.
This commit is contained in:
@@ -61,7 +61,6 @@ Vst2PluginBridge::Vst2PluginBridge(audioMasterCallback host_callback)
|
||||
// This weird cast is not needed, but without it clang/ccls won't shut up
|
||||
logger(static_cast<Vst2Logger&&>(Logger::create_from_environment(
|
||||
create_logger_prefix(sockets.base_dir)))),
|
||||
wine_version(get_wine_version()),
|
||||
vst_host(
|
||||
config.group
|
||||
? std::unique_ptr<HostProcess>(std::make_unique<GroupHost>(
|
||||
@@ -646,7 +645,7 @@ void Vst2PluginBridge::log_init_message() {
|
||||
}
|
||||
init_msg << "'" << std::endl;
|
||||
|
||||
init_msg << "wine version: '" << wine_version << "'" << std::endl;
|
||||
init_msg << "wine version: '" << get_wine_version() << "'" << std::endl;
|
||||
init_msg << std::endl;
|
||||
|
||||
// Print the path to the currently loaded configuration file and all
|
||||
|
||||
@@ -172,12 +172,6 @@ class Vst2PluginBridge {
|
||||
*/
|
||||
Vst2Logger logger;
|
||||
|
||||
/**
|
||||
* The version of Wine currently in use. Used in the debug output on plugin
|
||||
* startup.
|
||||
*/
|
||||
const std::string wine_version;
|
||||
|
||||
/**
|
||||
* The Wine process hosting the Windows VST plugin.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user