Skip to content

Commit

Permalink
Merge pull request flareteam#404 from Bertram25/master
Browse files Browse the repository at this point in the history
Fix for flare-game 160
  • Loading branch information
clintbellanger committed Mar 5, 2013
2 parents 3fdd9c8 + 5ab5a14 commit 38b51f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ void setPaths() {
return;
}

// Check for the local data before trying installed ones.
if (dirExists("./mods")) {
PATH_DATA = "./";
return;
}

// check $XDG_DATA_DIRS options
// a list of directories in preferred order separated by :
if (getenv("XDG_DATA_DIRS") != NULL) {
Expand Down

0 comments on commit 38b51f8

Please sign in to comment.