]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fs: use current working dir as basedir if not otherwise specified
authorbones_was_here <bones_was_here@xonotic.au>
Sun, 21 Apr 2024 16:11:56 +0000 (02:11 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sun, 21 Apr 2024 16:16:18 +0000 (02:16 +1000)
Fixes https://github.com/DarkPlacesEngine/darkplaces/issues/42

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
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
        }