Skip to content

Commit

Permalink
#1689: Allow using TB_DEV_MODE on FreeBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
kduske committed Jan 24, 2017
1 parent 6ae208a commit f2e5e80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/src/IO/SystemPaths.cpp
Expand Up @@ -32,7 +32,7 @@ namespace TrenchBroom {
return IO::Path(wxStandardPaths::Get().GetExecutablePath().ToStdString()).deleteLastComponent();
}

#if defined __linux__
#if defined __linux__ || defined __FreeBSD__
static bool getDevMode() {
wxString value;
if (!wxGetEnv("TB_DEV_MODE", &value))
Expand All @@ -42,7 +42,7 @@ namespace TrenchBroom {
#endif

Path resourceDirectory() {
#if defined __linux__
#if defined __linux__ || defined __FreeBSD__
static const bool DevMode = getDevMode();
if (DevMode)
return appDirectory();
Expand Down

0 comments on commit f2e5e80

Please sign in to comment.