Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/filesystem/filesystem.cc')
-rw-r--r--src/filesystem/filesystem.cc6
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);