Skip to content

Commit

Permalink
filesystem: set root directory as static
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kungfulon committed Nov 2, 2022
1 parent c1ca2c1 commit 37755b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filesystem/filesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++ )
{
Expand Down

0 comments on commit 37755b3

Please sign in to comment.