]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
fs: use current working dir as basedir if not otherwise specified
[xonotic/darkplaces.git] / fs.c
diff --git a/fs.c b/fs.c
index 8e95b43c40b8538b76babfe8611efdafacf61208..e2afcf052ca4b89b8227b7fd1f4a30b277aefea3 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -2163,6 +2163,9 @@ static void FS_Init_Dir (void)
                                }
                        }
                }
+#else
+               // use the working directory
+               getcwd(fs_basedir, sizeof(fs_basedir));
 #endif
        }