commit 5f5c9be71c155bdc1245765bc1059001989127fc parent 14d07db03155c1ea3c2500d80379a44afba77895 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Thu, 5 Aug 2021 23:02:39 +0200 fix issue when finding path of plugin is another parent folder is named .vst3, too Diffstat:
M | source/synthLib/os.cpp | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/source/synthLib/os.cpp b/source/synthLib/os.cpp @@ -66,8 +66,9 @@ namespace synthLib } #endif - auto fixPath = [&](std::string key) { - const auto end = path.find(key); + auto fixPath = [&](std::string key) + { + const auto end = path.find_last_of(key); if (end != std::string::npos) path = path.substr(0, end);