X-Git-Url: http://git.treefish.org/~alex/stickletrack.git/blobdiff_plain/67cf895ef6d35267c1f0b9681729881397ecee2f..c22f55516cf5df96e2a97056f42c66f71b774d9a:/stickletrack.cpp diff --git a/stickletrack.cpp b/stickletrack.cpp index 7462af7..e90f030 100755 --- a/stickletrack.cpp +++ b/stickletrack.cpp @@ -10,6 +10,11 @@ #include #include +// needed for _mkdir +#if defined(_WIN32) +#include +#endif + #include "masking.h" #include "stickletrack.h" #include "tracking.h" @@ -48,12 +53,12 @@ void genBaseDir() { #if defined(_WIN32) Props.basedir = getenv("HOMEDRIVE"); Props.basedir += getenv("HOMEPATH"); + Props.basedir += "\.stickletrack"; #else Props.basedir = getenv("HOME"); + Props.basedir += "/.stickletrack"; #endif - Props.basedir += "/.stickletrack"; - cout << "Using " << Props.basedir << " for data output." << endl; }