Rename get_modified_search_path() for clarity

This commit is contained in:
Robbert van der Helm
2020-11-20 15:39:05 +01:00
parent 3eb05012e0
commit 21b0f70eda
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -119,7 +119,7 @@ fs::path find_vst_host(PluginArchitecture plugin_arch, bool use_plugin_groups) {
// Boost will return an empty path if the file could not be found in the // Boost will return an empty path if the file could not be found in the
// search path // search path
const fs::path vst_host_path = const fs::path vst_host_path =
bp::search_path(host_name, get_modified_search_path()); bp::search_path(host_name, get_augmented_search_path());
if (vst_host_path == "") { if (vst_host_path == "") {
throw std::runtime_error("Could not locate '" + std::string(host_name) + throw std::runtime_error("Could not locate '" + std::string(host_name) +
"'"); "'");
@@ -177,7 +177,7 @@ boost::filesystem::path generate_group_endpoint(
return get_temporary_directory() / socket_name.str(); return get_temporary_directory() / socket_name.str();
} }
std::vector<boost::filesystem::path> get_modified_search_path() { std::vector<boost::filesystem::path> get_augmented_search_path() {
std::vector<boost::filesystem::path> search_path = std::vector<boost::filesystem::path> search_path =
boost::this_process::path(); boost::this_process::path();
+1 -1
View File
@@ -152,7 +152,7 @@ boost::filesystem::path generate_group_endpoint(
* like that before. And since this is the recommended installation location, it * like that before. And since this is the recommended installation location, it
* makes sense to also search there by default. * makes sense to also search there by default.
*/ */
std::vector<boost::filesystem::path> get_modified_search_path(); std::vector<boost::filesystem::path> get_augmented_search_path();
/** /**
* Return a path to this `.so` file. This can be used to find out from where * Return a path to this `.so` file. This can be used to find out from where
+1 -1
View File
@@ -29,7 +29,7 @@ mod utils;
fn main() -> Result<()> { fn main() -> Result<()> {
// We'll modify our `PATH` environment variable so it matches up with // We'll modify our `PATH` environment variable so it matches up with
// `get_modified_search_path()` from `src/plugin/utils.h` for easier setup // `get_augmented_search_path()` from `src/plugin/utils.h` for easier setup
let yabridge_home = config::yabridge_directories()?.get_data_home(); let yabridge_home = config::yabridge_directories()?.get_data_home();
env::set_var( env::set_var(
"PATH", "PATH",