diff options
Diffstat (limited to 'src/filesystem')
-rw-r--r-- | src/filesystem/filesystem.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/filesystem/filesystem.cc b/src/filesystem/filesystem.cc index f34ac42..130aeb7 100644 --- a/src/filesystem/filesystem.cc +++ b/src/filesystem/filesystem.cc @@ -32,9 +32,13 @@ void init() moddir = ""; // FIXME win32 +#ifndef _WIN32 homedir = getenv("HOME"); homedir = homedir + "/.osirion/"; - +#else + homedir = "./home/"; +#endif + sys::mkdir(homedir); sys::mkdir(homedir+basedir); |