filesystem: clean added status for game folders when purging search paths
This commit is contained in:
parent
684e229ac8
commit
8cd99885f1
1 changed files with 7 additions and 0 deletions
|
@ -448,6 +448,7 @@ FS_ClearSearchPath
|
|||
void FS_ClearSearchPath( void )
|
||||
{
|
||||
searchpath_t *cur, **prev;
|
||||
int i;
|
||||
|
||||
prev = &fs_searchpaths;
|
||||
|
||||
|
@ -469,6 +470,12 @@ void FS_ClearSearchPath( void )
|
|||
cur->pfnClose( cur );
|
||||
Mem_Free( cur );
|
||||
}
|
||||
|
||||
for( i = 0; i < FI.numgames; i++ )
|
||||
{
|
||||
if( FI.games[i] )
|
||||
FI.games[i]->added = false;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue