commit 556a2c586505adf36666d5598581130174ff7124
parent 5f5c9be71c155bdc1245765bc1059001989127fc
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Sat, 7 Aug 2021 20:10:34 +0200
fix broken path search function
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/synthLib/os.cpp b/source/synthLib/os.cpp
@@ -68,7 +68,7 @@ namespace synthLib
auto fixPath = [&](std::string key)
{
- const auto end = path.find_last_of(key);
+ const auto end = path.rfind(key);
if (end != std::string::npos)
path = path.substr(0, end);