From 1f4743e930b01c520372c570fb6c936ed461ee64 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Mon, 22 Apr 2024 02:11:56 +1000 Subject: [PATCH] fs: use current working dir as basedir if not otherwise specified Fixes https://github.com/DarkPlacesEngine/darkplaces/issues/42 Signed-off-by: bones_was_here --- fs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs.c b/fs.c index 8e95b43c..e2afcf05 100644 --- 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 } -- 2.39.2