Skip to content

Commit

Permalink
Unix|Client|Server|Resources: Look in /usr/share/games/doom for IWAD …
Browse files Browse the repository at this point in the history
…files

IssueID #2148
  • Loading branch information
skyjake committed Jan 19, 2016
1 parent be9e22a commit b9f7835
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doomsday/apps/client/src/dd_main.cpp
Expand Up @@ -350,6 +350,15 @@ static void createPackagesScheme()
}
}

#ifdef UNIX
NativePath systemWads("/usr/share/games/doom");
if(systemWads.exists())
{
scheme.addSearchPath(SearchPath(de::Uri::fromNativeDirPath(systemWads),
SearchPath::NoDescend));
}
#endif

// Add the path from the DOOMWADDIR environment variable.
if(!CommandLine_Check("-nodoomwaddir") && getenv("DOOMWADDIR"))
{
Expand Down

0 comments on commit b9f7835

Please sign in to comment.