engine: fix rodir, now it always creates gamefolder in rwdir. Fixes #87
This commit is contained in:
parent
23fe1c0985
commit
f56887bde9
1 changed files with 3 additions and 7 deletions
|
@ -1971,13 +1971,9 @@ void FS_Init( void )
|
||||||
|
|
||||||
for( i = 0; i < dirs.numstrings; i++ )
|
for( i = 0; i < dirs.numstrings; i++ )
|
||||||
{
|
{
|
||||||
if( !FS_SysFolderExists( dirs.strings[i] ) || ( !Q_stricmp( dirs.strings[i], ".." ) && !fs_ext_path ))
|
// no need to check folders here, FS_CreatePath will not fail if path exists
|
||||||
continue;
|
// and listdirectory returns only really existing directories
|
||||||
|
FS_CreatePath( va( "%s" PATH_SPLITTER "%s/", host.rootdir, dirs.strings[i] ));
|
||||||
// magic here is that dirs.strings don't contain full path
|
|
||||||
// so code below checks and creates folders in current directory(host.rootdir)
|
|
||||||
if( !FS_SysFolderExists( dirs.strings[i] ) )
|
|
||||||
FS_CreatePath( dirs.strings[i] );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stringlistfreecontents( &dirs );
|
stringlistfreecontents( &dirs );
|
||||||
|
|
Loading…
Add table
Reference in a new issue