Fix resource path search; the 'libraries' folder isn't always installed. Fixes #1342

master
Marius Kintel 2015-05-14 22:31:40 -04:00
parent 52f5fe2e92
commit 031e016df7
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ static std::string lookupResourcesPath()
for (int a = 0;searchpath[a] != NULL;a++) {
tmpdir = resourcedir / searchpath[a];
const fs::path checkdir = tmpdir / "libraries";
// The resource folder is the folder which contains "color-schemes" (as well as
// "examples" and "locale", and optionally "libraries" and "fonts")
const fs::path checkdir = tmpdir / "color-schemes";
PRINTDB("Checking '%s'", boosty::stringy(checkdir).c_str());
if (is_directory(checkdir)) {