Skip to content

Commit

Permalink
Fixed|OS X: Incorrect working directory with a developer build
Browse files Browse the repository at this point in the history
If Doomsday was started without "-userdir", no one ensured that the
working directory was set to the App's native home. This meant that
files written using FS1 were created inside the build directory.
  • Loading branch information
skyjake committed Apr 10, 2014
1 parent 0bcf052 commit fd7f50b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doomsday/client/src/unix/dd_uinit.cpp
Expand Up @@ -42,6 +42,8 @@
#include "filesys/fs_util.h"
#include "dd_uinit.h"

#include <de/App>

#ifdef __CLIENT__
# include <de/DisplayMode>
#endif
Expand All @@ -59,6 +61,9 @@ static void determineGlobalPaths(application_t* app)
{
assert(app);

// By default, make sure the working path is the home folder.
de::App::setCurrentWorkPath(de::App::app().nativeHomePath());

#ifndef MACOSX
if(getenv("HOME"))
{
Expand Down

0 comments on commit fd7f50b

Please sign in to comment.