Skip to content

Commit

Permalink
Fix selecting backgrounds on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
EXL committed Aug 22, 2018
1 parent 84b1a4c commit 18d5c1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cr3qt/src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,21 @@ static void findBackgrounds( lString16Collection & baseDirs, lString16Collection
int i;
for ( i=0; i<baseDirs.length(); i++ ) {
lString16 baseDir = baseDirs[i];
#ifndef _LINUX
if (baseDir == exeDir) {
baseDir = "";
}
#endif // !_LINUX
LVAppendPathDelimiter(baseDir);
findImagesFromDirectory( baseDir + "backgrounds", files );
}
for ( i=0; i<baseDirs.length(); i++ ) {
lString16 baseDir = baseDirs[i];
#ifndef _LINUX
if (baseDir == exeDir) {
baseDir = "";
}
#endif // !_LINUX
LVAppendPathDelimiter(baseDir);
findImagesFromDirectory( baseDir + "textures", files );
}
Expand Down

0 comments on commit 18d5c1f

Please sign in to comment.