mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Rename get_modified_search_path() for clarity
This commit is contained in:
@@ -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
|
||||
// search 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 == "") {
|
||||
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();
|
||||
}
|
||||
|
||||
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 =
|
||||
boost::this_process::path();
|
||||
|
||||
|
||||
+1
-1
@@ -152,7 +152,7 @@ boost::filesystem::path generate_group_endpoint(
|
||||
* like that before. And since this is the recommended installation location, it
|
||||
* 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
|
||||
|
||||
@@ -29,7 +29,7 @@ mod utils;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
// 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();
|
||||
env::set_var(
|
||||
"PATH",
|
||||
|
||||
Reference in New Issue
Block a user