From 816337a7bb9c358b03f2f75680c17749fedf306e Mon Sep 17 00:00:00 2001 From: Bien Pham Date: Wed, 2 Nov 2022 09:44:11 +0800 Subject: [PATCH] filesystem: set root directory as static Counter-Strike uses COM_ExpandFileName to get full path to filesystem_stdio. When reading liblist.gam, the engine will clear the search path and the root search path will be cleared. Set it as static so it will be excluded from clearing. --- filesystem/filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesystem/filesystem.c b/filesystem/filesystem.c index 55826b1b..17f7f845 100644 --- a/filesystem/filesystem.c +++ b/filesystem/filesystem.c @@ -1452,7 +1452,7 @@ qboolean FS_InitStdio( qboolean caseinsensitive, const char *rootdir, const char } // build list of game directories here - FS_AddGameDirectory( "./", 0 ); + FS_AddGameDirectory( "./", FS_STATIC_PATH ); for( i = 0; i < dirs.numstrings; i++ ) {