diff options
Diffstat (limited to 'Options.cpp')
-rw-r--r-- | Options.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Options.cpp b/Options.cpp index acfb803..c862bb8 100644 --- a/Options.cpp +++ b/Options.cpp @@ -2,7 +2,11 @@ Options::Options() {
char _cwd[FILENAME_MAX];
+#ifdef WIN32
+ GetCurrentDirectory(FILENAME_MAX, _cwd);
+#else
getcwd(_cwd, FILENAME_MAX);
+#endif
std::string cwd(_cwd);
user = "";
|