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:
Steve Checkoway
2006-09-12 03:24:58 +00:00
parent e7f2cc2d50
commit 4a0718c4e8
+2 -1
View File
@@ -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;