13
0

Search for JACK on windows using the registry

This commit is contained in:
Robin Gareus 2020-10-24 04:01:54 +02:00
parent 9037c9fe22
commit f7cc5e1f38
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -34,6 +34,7 @@
#ifdef PLATFORM_WINDOWS
#include <shobjidl.h> // Needed for
#include <shlguid.h> // 'IShellLink'
#include "pbd/windows_special_dirs.h"
#endif
#if (defined PLATFORM_WINDOWS && defined HAVE_PORTAUDIO)
@ -605,6 +606,11 @@ ARDOUR::get_jack_server_dir_paths (vector<std::string>& server_dir_paths)
if (pISL)
pISL->Release();
#else
std::string reg;
if (PBD::windows_query_registry ("Software\\JACK", "Location", reg)) {
sp.push_back (reg);
}
#endif
gchar *install_dir = g_win32_get_package_installation_directory_of_module (NULL);