Skip to content

Commit

Permalink
fs: use current working dir as basedir if not otherwise specified
Browse files Browse the repository at this point in the history
Fixes #42

Signed-off-by: bones_was_here <[email protected]>
  • Loading branch information
bones-was-here committed Apr 21, 2024
1 parent 49e6894 commit 1f4743e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2163,6 +2163,9 @@ static void FS_Init_Dir (void)
}
}
}
#else
// use the working directory
getcwd(fs_basedir, sizeof(fs_basedir));
#endif
}

Expand Down

0 comments on commit 1f4743e

Please sign in to comment.