We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 005407c commit 33a5c8cCopy full SHA for 33a5c8c
include/res_path.h
@@ -34,7 +34,7 @@ std::string getResourcePath(const std::string &subDir = ""){
34
return "";
35
}
36
//We replace the last bin/ with res/ to get the the resource path
37
- size_t pos = baseRes.find_last_of("bin") - 2;
+ size_t pos = baseRes.rfind("bin");
38
baseRes = baseRes.substr(0, pos) + "res" + PATH_SEP;
39
40
return subDir.empty() ? baseRes : baseRes + subDir + PATH_SEP;
0 commit comments