comparison src/vamp-hostsdk/PluginHostAdapter.cpp @ 513:4b619c5871ee

Use VAMP_PATH_32 environment variable instead of VAMP_PATH, when running in a 32-bit process within 64-bit Windows (WoW64)
author Chris Cannam
date Mon, 11 Jun 2018 11:31:47 +0100
parents 54277cb679ff
children df32b473b9b6
comparison
equal deleted inserted replaced
512:54277cb679ff 513:4b619c5871ee
70 PluginHostAdapter::getPluginPath() 70 PluginHostAdapter::getPluginPath()
71 { 71 {
72 std::vector<std::string> path; 72 std::vector<std::string> path;
73 std::string envPath; 73 std::string envPath;
74 74
75 (void)Files::getEnvUtf8("VAMP_PATH", envPath); 75 if (Files::isNonNative32Bit()) {
76 (void)Files::getEnvUtf8("VAMP_PATH_32", envPath);
77 } else {
78 (void)Files::getEnvUtf8("VAMP_PATH", envPath);
79 }
76 80
77 #ifdef _WIN32 81 #ifdef _WIN32
78 #define PATH_SEPARATOR ';' 82 #define PATH_SEPARATOR ';'
79 #define DEFAULT_VAMP_PATH "%ProgramFiles%\\Vamp Plugins" 83 #define DEFAULT_VAMP_PATH "%ProgramFiles%\\Vamp Plugins"
80 #else 84 #else