From 2b9f068e7ee4c0d249c715f9eb5a3c2c8a11e6f8 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 26 Mar 2008 18:10:17 +0000 Subject: win32 updates --- src/filesystem/filesystem.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/filesystem') 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); -- cgit v1.2.3