From f178251d79dfcbc8dcd866b7427708eaec8b7718 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 21 Oct 2021 20:41:34 +0100 Subject: [PATCH] Fix finding resources in windows for plugins using '/' separator Signed-off-by: falkTX --- src/dep.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dep.cpp b/src/dep.cpp index ddc518d..0bb8e83 100644 --- a/src/dep.cpp +++ b/src/dep.cpp @@ -99,6 +99,10 @@ static inline std::string& trim(std::string& s) { if (std::strncmp(s.c_str(), "res" DISTRHO_OS_SEP_STR, 4) == 0) s = s.substr(4, s.size()-4); +#if DISTRHO_OS_SEP != '/' + if (std::strncmp(s.c_str(), "res/", 4) == 0) + s = s.substr(4, s.size()-4); +#endif return s; }