Flush the directory cache so that --temp-- is removed. Is there a reason to do this rather than access(2)? (Obviously, this would need to be done in the FileManager itself.)
This commit is contained in:
@@ -211,6 +211,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
|
||||
}
|
||||
|
||||
file.Close();
|
||||
FILEMAN->FlushDirCache( sDir );
|
||||
FILEMAN->Remove( sTempFile );
|
||||
break;
|
||||
}
|
||||
@@ -268,7 +269,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
|
||||
SCREENMAN->PlayStartSound();
|
||||
|
||||
GAMESTATE->m_pCurSong.Set( pSong );
|
||||
GAMESTATE->m_pCurSteps[0].Set( pSteps );
|
||||
GAMESTATE->m_pCurSteps[PLAYER_1].Set( pSteps );
|
||||
GAMESTATE->m_pCurCourse.Set( NULL );
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user