mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Allow overriding the wine prefix manually
This commit is contained in:
@@ -561,7 +561,12 @@ fs::path generate_endpoint_name() {
|
|||||||
* the user's default prefix.
|
* the user's default prefix.
|
||||||
*/
|
*/
|
||||||
bp::environment set_wineprefix() {
|
bp::environment set_wineprefix() {
|
||||||
auto env(boost::this_process::environment());
|
auto env = boost::this_process::environment();
|
||||||
|
|
||||||
|
// Allow the wine prefix to be overridden manually
|
||||||
|
if (!env["WINEPREFIX"].empty()) {
|
||||||
|
return env;
|
||||||
|
}
|
||||||
|
|
||||||
const auto wineprefix_path = find_wineprefix();
|
const auto wineprefix_path = find_wineprefix();
|
||||||
if (wineprefix_path.has_value()) {
|
if (wineprefix_path.has_value()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user