Skip to content

Commit

Permalink
Don't use /usr based path on FreeBSD
Browse files Browse the repository at this point in the history
Third party software is always installed into /usr/local there
  • Loading branch information
AMDmi3 committed May 15, 2013
1 parent e8247a5 commit 0b6c2e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Engine/CrossPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ std::vector<std::string> findDataFolders()
list.push_back(path);
#else
list.push_back("/usr/local/share/openxcom/data/");
#ifndef __FreeBSD__
list.push_back("/usr/share/openxcom/data/");
#endif
#ifdef DATADIR
snprintf(path, MAXPATHLEN, "%s/data/", DATADIR);
list.push_back(path);
Expand Down

0 comments on commit 0b6c2e8

Please sign in to comment.