Factor out directory finding from prefix detection

This will also be used to locate the `yabridge.tmol` configuration file.
This commit is contained in:
Robbert van der Helm
2020-05-14 19:11:17 +02:00
parent e728dbe5a2
commit 9a82e82c87
3 changed files with 63 additions and 11 deletions
+2 -1
View File
@@ -101,7 +101,8 @@ boost::filesystem::path find_vst_plugin();
/**
* Locate the Wine prefix this file is located in, if it is inside of a wine
* prefix.
* prefix. This is done by locating the first parent directory that contains a
* directory named `dosdevices`.
*
* @return Either the path to the Wine prefix (containing the `drive_c?`
* directory), or `std::nullopt` if it is not inside of a wine prefix.