Fix finding resources in windows for plugins using '/' separator

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-10-21 20:41:34 +01:00
parent f67ec66dc8
commit f178251d79
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

@ -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;
}