Browse Source

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.
pull/2/head
Bien Pham 2 years ago committed by Alibek Omarov
parent
commit
816337a7bb
  1. 2
      filesystem/filesystem.c

2
filesystem/filesystem.c

@ -1452,7 +1452,7 @@ qboolean FS_InitStdio( qboolean caseinsensitive, const char *rootdir, const char @@ -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++ )
{

Loading…
Cancel
Save