Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-26 18:10:17 +0000
committerStijn Buys <ingar@osirion.org>2008-03-26 18:10:17 +0000
commit2b9f068e7ee4c0d249c715f9eb5a3c2c8a11e6f8 (patch)
treefcd373f97385dc150437bc09b2143e0ceee589e1 /src/filesystem
parenta29aa1ee2935857f616351a23578311f514516d4 (diff)
win32 updates
Diffstat (limited to 'src/filesystem')
-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);