commit ea2c0c415c114ec2b6baba4a0005c5473b2641d1 parent 92695072116ae26dc922b6e9b2bfdbb07d30e166 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Fri, 16 Jul 2021 22:36:37 +0200 fix vst3 rom search path issue on Windows Diffstat:
M | source/synthLib/os.cpp | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/source/synthLib/os.cpp b/source/synthLib/os.cpp @@ -77,7 +77,12 @@ namespace synthLib fixPath(".vst3/"); fixPath(".component/"); - auto end = path.find_last_of("/\\"); + fixPath(".vst\\"); + fixPath(".vst3\\"); + fixPath(".component\\"); + + const auto end = path.find_last_of("/\\"); + if(end != std::string::npos) path = path.substr(0, end + 1);